From e46227505e5d339f49706432531a060485bc6236 Mon Sep 17 00:00:00 2001 From: aemony Date: Sat, 2 Mar 2024 20:08:00 +0100 Subject: [PATCH] Restored missing glyph fallback --- src/imgui/imgui_draw.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/imgui/imgui_draw.cpp b/src/imgui/imgui_draw.cpp index ebf31b3d..c3184e07 100644 --- a/src/imgui/imgui_draw.cpp +++ b/src/imgui/imgui_draw.cpp @@ -3845,6 +3845,18 @@ void ImFont::RenderText(ImDrawList* draw_list, float size, const ImVec2& pos, Im if (glyph == NULL) continue; + // + // SKIF Mod: Unprintable Character Callback + // + if (glyph == FallbackGlyph) + { + extern void + SKIF_ImGui_MissingGlyphCallback (wchar_t c); + SKIF_ImGui_MissingGlyphCallback ( + static_cast (c) + ); + } + float char_width = glyph->AdvanceX * scale; if (glyph->Visible) {