Introduce 'Nanum' as a macOS alternative for Gulim when using Korean.

This commit is contained in:
Aaron van Geffen 2017-10-27 18:25:28 +02:00 committed by Michael Steenbeek
parent 744341af07
commit b393ce3f11
3 changed files with 9 additions and 0 deletions

View File

@ -37,6 +37,7 @@ TTFontFamily const TTFFamilyJapanese =
TTFontFamily const TTFFamilyKorean =
{
&TTFFontGulim,
&TTFFontNanum,
};
TTFontFamily const TTFFamilySansSerif =

View File

@ -64,6 +64,13 @@ TTFFontSetDescriptor TTFFontGulim = { {
{ "gulim.ttc", "Gulim", 13, 1, 0, 16, HINTING_THRESHOLD_MEDIUM, nullptr },
} };
TTFFontSetDescriptor TTFFontNanum = { {
{ "NanumGothic.ttc", "Nanum Gothic", 11, 1, 0, 13, HINTING_THRESHOLD_LOW, nullptr },
{ "NanumGothic.ttc", "Nanum Gothic", 12, 1, 0, 15, HINTING_THRESHOLD_LOW, nullptr },
{ "NanumGothic.ttc", "Nanum Gothic", 12, 1, 0, 15, HINTING_THRESHOLD_LOW, nullptr },
{ "NanumGothic.ttc", "Nanum Gothic", 13, 1, 0, 16, HINTING_THRESHOLD_LOW, nullptr },
} };
TTFFontSetDescriptor TTFFontArial = { {
{ "arial.ttf", "Arial", 8, 0, -1, 6, HINTING_THRESHOLD_LOW, nullptr },
{ "arial.ttf", "Arial", 10, 0, -1, 12, HINTING_THRESHOLD_LOW, nullptr },

View File

@ -25,6 +25,7 @@ extern TTFFontSetDescriptor TTFFontHiragano;
extern TTFFontSetDescriptor TTFFontMingLiu;
extern TTFFontSetDescriptor TTFFontSimSun;
extern TTFFontSetDescriptor TTFFontGulim;
extern TTFFontSetDescriptor TTFFontNanum;
extern TTFFontSetDescriptor TTFFontArial;
extern TTFFontSetDescriptor TTFFontArialUnicode;
#define FONT(x) x