(Breaking) Fonts: removed PushFontSize(), PopFontSize().

This commit is contained in:
ocornut
2025-06-24 19:01:59 +02:00
parent ca72eb0596
commit 97e0d59619
8 changed files with 11 additions and 28 deletions

View File

@@ -5227,7 +5227,7 @@ ImFontBaked* ImFont::GetFontBaked(float size, float density)
ImFontBaked* baked = LastBaked;
// Round font size
// - ImGui::PushFontSize() will already round, but other paths calling GetFontBaked() directly also needs it (e.g. ImFontAtlasBuildPreloadAllGlyphRanges)
// - ImGui::PushFont() will already round, but other paths calling GetFontBaked() directly also needs it (e.g. ImFontAtlasBuildPreloadAllGlyphRanges)
size = ImGui::GetRoundedFontSize(size);
if (density < 0.0f)