1
0
Fork 0
mirror of https://github.com/ocornut/imgui.git synced 2026-01-09 23:54:20 +00:00

Fonts: fixed broken support for legacy backend due to a mismatch with initial pre-build baked id.

This commit is contained in:
ocornut 2025-05-11 23:51:45 +02:00 committed by ocornut
parent 65e6039979
commit fad5280d4c
3 changed files with 3 additions and 2 deletions

View file

@ -3002,6 +3002,7 @@ ImFont* ImFontAtlas::AddFont(const ImFontConfig* font_cfg_in)
font->FontId = FontNextUniqueID++;
font->Flags = font_cfg_in->Flags;
font->DefaultSize = font_cfg_in->SizePixels;
font->CurrentRasterizerDensity = font_cfg_in->RasterizerDensity;
Fonts.push_back(font);
}
else