[UI] Fixed issue with font not being loaded in certain conditions
This commit is contained in:
@@ -395,7 +395,7 @@ void ImGuiDrawer::InitializeFonts(const float font_size) {
|
|||||||
is_font_loaded = LoadWindowsFont(io, font_config, font_size);
|
is_font_loaded = LoadWindowsFont(io, font_config, font_size);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (io.Fonts->Fonts.empty()) {
|
if (!is_font_loaded) {
|
||||||
io.Fonts->AddFontFromMemoryCompressedBase85TTF(
|
io.Fonts->AddFontFromMemoryCompressedBase85TTF(
|
||||||
kProggyTinyCompressedDataBase85, font_size, &font_config,
|
kProggyTinyCompressedDataBase85, font_size, &font_config,
|
||||||
io.Fonts->GetGlyphRangesDefault());
|
io.Fonts->GetGlyphRangesDefault());
|
||||||
|
|||||||
Reference in New Issue
Block a user