FIX: imgui font display (STUDIO-2786)

Change-Id: Ie99262b6f0fe859c52becc344c0c9369d47d0f04
(cherry picked from commit e0073704189483f98a3d51d28bee0bf8b51a8742)
This commit is contained in:
liz.li 2023-04-18 15:16:13 +08:00 committed by Lane.Wei
parent d3b722c12d
commit 70bbaa4337

View file

@ -2067,6 +2067,7 @@ void ImGuiWrapper::init_font(bool compress)
ImVector<ImWchar> basic_ranges;
ImFontAtlas::GlyphRangesBuilder builder;
builder.AddRanges(m_glyph_ranges);
builder.AddRanges(ImGui::GetIO().Fonts->GetGlyphRangesDefault());
#ifdef __APPLE__
if (m_font_cjk)
// Apple keyboard shortcuts are only contained in the CJK fonts.