Skip to content

Commit c4cd0e9

Browse files
kjkclaude
andcommitted
add Windows fallback fonts for Chinese Kai typeface family
Map MKai PRC, STKai, Kai and related font names to KaiTi, the standard Kai font bundled with Windows. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 5708463 commit c4cd0e9

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

ext/mupdf_load_system_font.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,17 @@ static struct {
139139
{"LucidaBright", "Georgia"},
140140
{"Handwriting", "SegoeScript"},
141141
{"Console", "Consolas"},
142+
// Chinese Kai (regular script) font fallbacks
143+
{"MKai PRC", "KaiTi"},
144+
{"MKaiPRC-Regular", "KaiTi"},
145+
{"MKaiPRC", "KaiTi"},
146+
{"STKaiti", "KaiTi"},
147+
{"STKaiti-Regular", "KaiTi"},
148+
{"STKai", "KaiTi"},
149+
{"Kai", "KaiTi"},
150+
{"Kaiti_GB2312", "KaiTi"},
151+
{"Kaiti SC", "KaiTi"},
152+
{"Kaiti TC", "KaiTi"},
142153
};
143154

144155
static win_fonts g_win_fonts;

0 commit comments

Comments
 (0)