Use 'LiHei Pro' for Chinese (Traditional) on macOS.

This commit is contained in:
Aaron van Geffen 2017-10-28 11:27:24 +02:00 committed by Michael Steenbeek
parent fb7f97d360
commit 9cb25e6106
3 changed files with 9 additions and 0 deletions

View File

@ -26,6 +26,7 @@ TTFontFamily const TTFFamilyChineseSimplified =
TTFontFamily const TTFFamilyChineseTraditional =
{
&TTFFontSimSun,
&TTFFontLiHeiPro,
};
TTFontFamily const TTFFamilyJapanese =

View File

@ -57,6 +57,13 @@ TTFFontSetDescriptor TTFFontSimSun = { {
{ "simsun.ttc", "SimSun", 13, 1, 0, 16, HINTING_THRESHOLD_MEDIUM, nullptr },
} };
TTFFontSetDescriptor TTFFontLiHeiPro = { {
{ u8"儷黑 Pro.ttf", "LiHei Pro", 9, 1, -1, 10, HINTING_THRESHOLD_MEDIUM, nullptr },
{ u8"儷黑 Pro.ttf", "LiHei Pro", 11, 1, 0, 14, HINTING_THRESHOLD_MEDIUM, nullptr },
{ u8"儷黑 Pro.ttf", "LiHei Pro", 12, 1, 0, 15, HINTING_THRESHOLD_MEDIUM, nullptr },
{ u8"儷黑 Pro.ttf", "LiHei Pro", 13, 1, 0, 16, HINTING_THRESHOLD_MEDIUM, nullptr },
} };
TTFFontSetDescriptor TTFFontGulim = { {
{ "gulim.ttc", "Gulim", 11, 1, 0, 13, HINTING_THRESHOLD_MEDIUM, nullptr },
{ "gulim.ttc", "Gulim", 12, 1, 0, 15, HINTING_THRESHOLD_MEDIUM, nullptr },

View File

@ -24,6 +24,7 @@ extern TTFFontSetDescriptor TTFFontMSGothic;
extern TTFFontSetDescriptor TTFFontHiragano;
extern TTFFontSetDescriptor TTFFontMingLiu;
extern TTFFontSetDescriptor TTFFontSimSun;
extern TTFFontSetDescriptor TTFFontLiHeiPro;
extern TTFFontSetDescriptor TTFFontGulim;
extern TTFFontSetDescriptor TTFFontNanum;
extern TTFFontSetDescriptor TTFFontArial;