Force using UTF-8 encoding in locales, use the correct glyphs for all font sizes

This commit is contained in:
Guillaume Meunier
2024-06-21 21:47:26 +02:00
parent 5e5ff7cf6c
commit 5b09661499
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -456,10 +456,12 @@ void imgui_context::initialize_fonts()
{
ImFontConfig config;
config.FontDataOwnedByAtlas = false;
large_font = io.Fonts->AddFontFromFileTTF(font_path.c_str(), 75, &config);
large_font = io.Fonts->AddFontFromFileTTF(font_path.c_str(), 75, &config, glyph_ranges.Data);
}
glyph_range_dirty = false;
ImGui_ImplVulkan_CreateFontsTexture();
}
void imgui_context::new_frame(XrTime display_time)