refactoring some font support

This commit is contained in:
2025-12-02 15:47:38 -08:00
parent 38915484ac
commit 49fa7ff8a7
47 changed files with 37515 additions and 21660 deletions

View File

@@ -329,8 +329,8 @@ GUIFrontend::LoadGuiFont_(const char * /*path*/, float size_px)
const ImGuiIO &io = ImGui::GetIO();
io.Fonts->Clear();
const ImFont *font = io.Fonts->AddFontFromMemoryCompressedTTF(
DefaultFontBoldCompressedData,
DefaultFontBoldCompressedSize,
kte::Fonts::DefaultFontRegularCompressedData,
kte::Fonts::DefaultFontRegularCompressedSize,
size_px);
if (!font) {
font = io.Fonts->AddFontDefault();