add IBM Plex Sans Japanese/Korean

This commit is contained in:
tildearrow 2024-06-12 17:15:54 -05:00
parent 40fdb004ec
commit c9669f32ad
14 changed files with 190307 additions and 10724 deletions

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

128045
src/gui/font_plexSansJP.cpp Normal file

File diff suppressed because it is too large Load diff

51400
src/gui/font_plexSansKR.cpp Normal file

File diff suppressed because it is too large Load diff

View file

@ -30,6 +30,10 @@ extern const unsigned int font_mononoki_compressed_size;
extern const unsigned char font_mononoki_compressed_data[];
extern const unsigned int font_plexSans_compressed_size;
extern const unsigned char font_plexSans_compressed_data[];
extern const unsigned int font_plexSansJP_compressed_size;
extern const unsigned char font_plexSansJP_compressed_data[];
extern const unsigned int font_plexSansKR_compressed_size;
extern const unsigned char font_plexSansKR_compressed_data[];
extern const unsigned int font_plexMono_compressed_size;
extern const unsigned char font_plexMono_compressed_data[];
extern const unsigned int font_proggyClean_compressed_size;

View file

@ -6546,10 +6546,7 @@ void FurnaceGUI::applyUISettings(bool updateFonts) {
}
}
// two fallback fonts
if (settings.loadFallback) {
mainFont=addFontZlib(font_liberationSans_compressed_data,font_liberationSans_compressed_size,MAX(1,e->getConfInt("mainFontSize",18)*dpiScale),&fc1,fontRange);
}
// four fallback fonts
if (settings.loadJapanese ||
settings.loadChinese ||
settings.loadChineseTraditional ||
@ -6557,7 +6554,11 @@ void FurnaceGUI::applyUISettings(bool updateFonts) {
localeRequiresJapanese ||
localeRequiresChinese ||
localeRequiresChineseTrad ||
localeRequiresKorean) {
localeRequiresKorean ||
settings.loadFallback) {
mainFont=addFontZlib(font_plexSans_compressed_data,font_plexSans_compressed_size,MAX(1,e->getConfInt("mainFontSize",18)*dpiScale),&fc1,fontRange);
mainFont=addFontZlib(font_plexSansJP_compressed_data,font_plexSansJP_compressed_size,MAX(1,e->getConfInt("mainFontSize",18)*dpiScale),&fc1,fontRange);
mainFont=addFontZlib(font_plexSansKR_compressed_data,font_plexSansKR_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);
}