mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-08-01 22:30:42 -07:00
overlay: fix font loading (#406)
## Link to GitHub Issue, if one exists n/a ## Description of change Fix font loading - when the code was refactored in #286 I used the wrong file extension for couple of them.
This commit is contained in:
@@ -270,13 +270,14 @@ void overlay::SpiceOverlay::init() {
|
|||||||
ImFontConfig config {};
|
ImFontConfig config {};
|
||||||
config.MergeMode = true;
|
config.MergeMode = true;
|
||||||
|
|
||||||
|
log_misc("overlay", "loading fonts, failures are not fatal");
|
||||||
add_font("simsun.ttc", &config, io.Fonts->GetGlyphRangesChineseSimplifiedCommon());
|
add_font("simsun.ttc", &config, io.Fonts->GetGlyphRangesChineseSimplifiedCommon());
|
||||||
add_font("arial.ttc", &config, io.Fonts->GetGlyphRangesCyrillic());
|
add_font("arial.ttf", &config, io.Fonts->GetGlyphRangesCyrillic());
|
||||||
add_font("meiryu.ttc", &config, io.Fonts->GetGlyphRangesJapanese());
|
add_font("meiryu.ttc", &config, io.Fonts->GetGlyphRangesJapanese());
|
||||||
add_font("meiryo.ttc", &config, io.Fonts->GetGlyphRangesJapanese());
|
add_font("meiryo.ttc", &config, io.Fonts->GetGlyphRangesJapanese());
|
||||||
add_font("gulim.ttc", &config, io.Fonts->GetGlyphRangesKorean());
|
add_font("gulim.ttc", &config, io.Fonts->GetGlyphRangesKorean());
|
||||||
add_font("cordia.ttc", &config, io.Fonts->GetGlyphRangesThai());
|
add_font("cordia.ttf", &config, io.Fonts->GetGlyphRangesThai());
|
||||||
add_font("arial.ttc", &config, io.Fonts->GetGlyphRangesVietnamese());
|
add_font("arial.ttf", &config, io.Fonts->GetGlyphRangesVietnamese());
|
||||||
|
|
||||||
// add special font
|
// add special font
|
||||||
if (avs::game::is_model("LDJ")) {
|
if (avs::game::is_model("LDJ")) {
|
||||||
|
|||||||
Reference in New Issue
Block a user