actually consider locale script requirements

This commit is contained in:
tildearrow 2024-06-12 16:40:51 -05:00
parent 26020477cc
commit 40fdb004ec

View file

@ -6550,7 +6550,14 @@ void FurnaceGUI::applyUISettings(bool updateFonts) {
if (settings.loadFallback) { if (settings.loadFallback) {
mainFont=addFontZlib(font_liberationSans_compressed_data,font_liberationSans_compressed_size,MAX(1,e->getConfInt("mainFontSize",18)*dpiScale),&fc1,fontRange); mainFont=addFontZlib(font_liberationSans_compressed_data,font_liberationSans_compressed_size,MAX(1,e->getConfInt("mainFontSize",18)*dpiScale),&fc1,fontRange);
} }
if (settings.loadJapanese || settings.loadChinese || settings.loadChineseTraditional || settings.loadKorean) { if (settings.loadJapanese ||
settings.loadChinese ||
settings.loadChineseTraditional ||
settings.loadKorean ||
localeRequiresJapanese ||
localeRequiresChinese ||
localeRequiresChineseTrad ||
localeRequiresKorean) {
mainFont=addFontZlib(font_unifont_compressed_data,font_unifont_compressed_size,MAX(1,e->getConfInt("mainFontSize",18)*dpiScale),&fc1,fontRange); mainFont=addFontZlib(font_unifont_compressed_data,font_unifont_compressed_size,MAX(1,e->getConfInt("mainFontSize",18)*dpiScale),&fc1,fontRange);
} }