Introduce 'Arial Unicode MS' as a more compatible alternative to regular Arial.

This commit is contained in:
Aaron van Geffen 2017-10-27 17:44:51 +02:00 committed by Michael Steenbeek
parent 58add28604
commit 744341af07
3 changed files with 9 additions and 0 deletions

View File

@ -41,6 +41,7 @@ TTFontFamily const TTFFamilyKorean =
TTFontFamily const TTFFamilySansSerif =
{
&TTFFontArialUnicode,
&TTFFontArial,
};

View File

@ -70,6 +70,13 @@ TTFFontSetDescriptor TTFFontArial = { {
{ "arial.ttf", "Arial", 11, 0, -1, 12, HINTING_THRESHOLD_LOW, nullptr },
{ "arial.ttf", "Arial", 12, 0, -1, 14, HINTING_THRESHOLD_LOW, nullptr },
} };
TTFFontSetDescriptor TTFFontArialUnicode = { {
{ "arialuni.ttf", "Arial Unicode MS", 8, 0, -1, 6, HINTING_THRESHOLD_LOW, nullptr },
{ "arialuni.ttf", "Arial Unicode MS", 10, 0, -1, 12, HINTING_THRESHOLD_LOW, nullptr },
{ "arialuni.ttf", "Arial Unicode MS", 11, 0, -1, 12, HINTING_THRESHOLD_LOW, nullptr },
{ "arialuni.ttf", "Arial Unicode MS", 12, 0, -1, 14, HINTING_THRESHOLD_LOW, nullptr },
} };
#endif // NO_TTF
static void LoadSpriteFont()

View File

@ -26,6 +26,7 @@ extern TTFFontSetDescriptor TTFFontMingLiu;
extern TTFFontSetDescriptor TTFFontSimSun;
extern TTFFontSetDescriptor TTFFontGulim;
extern TTFFontSetDescriptor TTFFontArial;
extern TTFFontSetDescriptor TTFFontArialUnicode;
#define FONT(x) x
#else
#define FONT(x) FONT_OPENRCT2_SPRITE