From 7524b42564262466cd658dcf1ea146034a93b4e5 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Mon, 10 Jul 2023 14:38:26 -0500 Subject: [PATCH] GUI: again issue #1228 --- src/gui/gui.cpp | 2 ++ src/gui/settings.cpp | 1 + 2 files changed, 3 insertions(+) diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index bd75fce85..6eefb6913 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -3839,6 +3839,7 @@ bool FurnaceGUI::loop() { ImGui::GetIO().Fonts->Clear(); mainFont=ImGui::GetIO().Fonts->AddFontDefault(); patFont=mainFont; + bigFont=mainFont; if (rend) rend->destroyFontsTexture(); if (!ImGui::GetIO().Fonts->Build()) { logE("error again while building font atlas!"); @@ -6433,6 +6434,7 @@ bool FurnaceGUI::init() { ImGui::GetIO().Fonts->Clear(); mainFont=ImGui::GetIO().Fonts->AddFontDefault(); patFont=mainFont; + bigFont=mainFont; if (rend) rend->destroyFontsTexture(); if (!ImGui::GetIO().Fonts->Build()) { logE("error again while building font atlas!"); diff --git a/src/gui/settings.cpp b/src/gui/settings.cpp index 6c70a8914..b0e280e90 100644 --- a/src/gui/settings.cpp +++ b/src/gui/settings.cpp @@ -3201,6 +3201,7 @@ void FurnaceGUI::commitSettings() { ImGui::GetIO().Fonts->Clear(); mainFont=ImGui::GetIO().Fonts->AddFontDefault(); patFont=mainFont; + bigFont=mainFont; if (rend) rend->destroyFontsTexture(); if (!ImGui::GetIO().Fonts->Build()) { logE("error again while building font atlas!");