mirror of
https://github.com/ocornut/imgui.git
synced 2025-09-07 11:58:22 +00:00
Fonts: fixed broken support for legacy backend due to a mismatch with initial pre-build baked id.
This commit is contained in:
@@ -8657,7 +8657,7 @@ void ImGui::UpdateCurrentFontSize()
|
||||
// - We may support it better later and remove this rounding.
|
||||
final_size = GetRoundedFontSize(final_size);
|
||||
final_size = ImMax(1.0f, final_size);
|
||||
if (g.Font != NULL)
|
||||
if (g.Font != NULL && (g.IO.BackendFlags & ImGuiBackendFlags_RendererHasTextures))
|
||||
g.Font->CurrentRasterizerDensity = g.FontRasterizerDensity;
|
||||
g.FontBaked = (g.Font != NULL) ? g.Font->GetFontBaked(final_size) : NULL;
|
||||
g.FontSize = final_size;
|
||||
|
Reference in New Issue
Block a user