mirror of
https://github.com/ocornut/imgui.git
synced 2026-09-28 04:03:28 +03:00
Fonts: ImFontFlags: ImFontFlags_NoLoadGlyphs + add ImFontFlags_LockBakedSizes
This commit is contained in:
parent
8a8d8a7b38
commit
dc1320df64
3 changed files with 30 additions and 9 deletions
|
|
@ -4321,7 +4321,7 @@ void ImGui::PushPasswordFont()
|
|||
ImFont* out_font = &g.InputTextPasswordFont;
|
||||
out_font->Scale = in_font->Scale;
|
||||
out_font->ContainerAtlas = in_font->ContainerAtlas;
|
||||
out_font->LockDisableLoading = true;
|
||||
out_font->Flags |= ImFontFlags_NoLoadGlyphs;
|
||||
ImFontBaked* out_baked = out_font->GetFontBaked(in_baked->Size);
|
||||
IM_ASSERT(out_baked->Glyphs.Size <= 1 && out_baked->IndexAdvanceX.Size == 0 && out_baked->IndexLookup.Size == 0);
|
||||
out_baked->Ascent = in_baked->Ascent;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue