You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: imgui_internal.h
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -2334,8 +2334,8 @@ struct ImGuiContext
2334
2334
ImVector<ImFontAtlas*> FontAtlases; // List of font atlases used by the context (generally only contains g.IO.Fonts aka the main font atlas)
2335
2335
ImFont* Font; // Currently bound font. (== FontStack.back().Font)
2336
2336
ImFontBaked* FontBaked; // Currently bound font at currently bound size. (== Font->GetFontBaked(FontSize))
2337
-
float FontSize; // Currently bound font size == line height (== FontSizeBeforeScaling + externals scales applied in the UpdateCurrentFontSize() function).
2338
-
floatFontSizeBeforeScaling;// Font size before scaling == style.FontSizeBase == value passed to PushFont() / PushFontSize() when specified.
2337
+
float FontSize; // Currently bound font size == line height (== FontSizeBase + externals scales applied in the UpdateCurrentFontSize() function).
2338
+
floatFontSizeBase; // Font size before scaling == style.FontSizeBase == value passed to PushFont() / PushFontSize() when specified.
2339
2339
float FontBakedScale; // == FontBaked->Size / FontSize. Scale factor over baked size. Rarely used nowadays, very often == 1.0f.
2340
2340
float FontRasterizerDensity; // Current font density. Used by all calls to GetFontBaked().
2341
2341
float CurrentDpiScale; // Current window/viewport DpiScale == CurrentViewport->DpiScale
// [Obsolete] ImGuiWindow::CalcFontSize() was removed in 1.92.x because error-prone/misleading. You can use window->FontRefSize for a copy of g.FontSize at the time of the last Begin() call for this window.
0 commit comments