From bdff33a4200cac020538014b502158390f8f820b Mon Sep 17 00:00:00 2001 From: bicarus-dev <202771338+bicarus-dev@users.noreply.github.com> Date: Mon, 20 Oct 2025 00:53:28 -0700 Subject: [PATCH] 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. --- src/spice2x/overlay/overlay.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/spice2x/overlay/overlay.cpp b/src/spice2x/overlay/overlay.cpp index 7fb65e4..7d97f2a 100644 --- a/src/spice2x/overlay/overlay.cpp +++ b/src/spice2x/overlay/overlay.cpp @@ -270,13 +270,14 @@ void overlay::SpiceOverlay::init() { ImFontConfig config {}; config.MergeMode = true; + log_misc("overlay", "loading fonts, failures are not fatal"); 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("meiryo.ttc", &config, io.Fonts->GetGlyphRangesJapanese()); add_font("gulim.ttc", &config, io.Fonts->GetGlyphRangesKorean()); - add_font("cordia.ttc", &config, io.Fonts->GetGlyphRangesThai()); - add_font("arial.ttc", &config, io.Fonts->GetGlyphRangesVietnamese()); + add_font("cordia.ttf", &config, io.Fonts->GetGlyphRangesThai()); + add_font("arial.ttf", &config, io.Fonts->GetGlyphRangesVietnamese()); // add special font if (avs::game::is_model("LDJ")) {