We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d843f40 commit 7b2b67cCopy full SHA for 7b2b67c
1 file changed
imgui.cpp
@@ -6951,8 +6951,8 @@ void ImGui::SetCurrentFont(ImFont* font)
6951
g.Font = font;
6952
g.FontBaseScale = ImMax(0.01f, g.IO.FontGlobalScale * g.Font->Scale);
6953
const float font_scale = g.FontBaseScale * (g.CurrentWindow ? g.CurrentWindow->CalcFontScale() : 1.0f);
6954
- g.FontSize = g.Font->FontSize * font_scale;
6955
- g.FontLineHeight = (g.Font->FontSize + g.Font->ExtraLineHeight) * font_scale;
+ g.FontSize = IM_ROUND(g.Font->FontSize * font_scale);
+ g.FontLineHeight = IM_ROUND((g.Font->FontSize + g.Font->ExtraLineHeight) * font_scale);
6956
g.FontBaselineOffset = g.Font->BaselineOffset * font_scale;
6957
6958
ImFontAtlas* atlas = g.Font->ContainerAtlas;
0 commit comments