Skip to content

Commit 3cbb4f9

Browse files
committed
Fix font scaling bug
Caused improper font scaling when the value saved in the config was non zero.
1 parent 326cba9 commit 3cbb4f9

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Nanoforge/render/imgui/ImGuiFontManager.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ class ImGuiFont
2020
void Pop() const { ImGui::PopFont(); }
2121
void Load(const ImGuiIO& io, const ImFontConfig* font_cfg_template, const ImWchar* glyph_ranges)
2222
{
23-
Config* config = Config::Get();
24-
25-
size_ *= CVar_UIScale.Get<f32>();
2623
//Load normal font
2724
io.Fonts->AddFontFromFileTTF(BuildConfig::MainFontPath.c_str(), size_);
2825
//Load FontAwesome image font and merge with normal font

0 commit comments

Comments
 (0)