Skip to content

Commit

Permalink
Restored missing glyph fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
Aemony committed Mar 2, 2024
1 parent 96ad4a4 commit e462275
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/imgui/imgui_draw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 <wchar_t> (c)
);
}

float char_width = glyph->AdvanceX * scale;
if (glyph->Visible)
{
Expand Down

0 comments on commit e462275

Please sign in to comment.