ImFont: IndexLookup[] table hold 16-bit values even in ImWchar32 mode.

This commit is contained in:
ocornut
2025-01-24 16:54:59 +01:00
parent 53244aaac7
commit 9eafb7bbfb
3 changed files with 14 additions and 10 deletions
+1 -1
View File
@@ -3456,7 +3456,7 @@ struct ImFont
float FontSize; // 4 // in // // Height of characters/line, set during loading (don't change after loading)
// [Internal] Members: Hot ~28/40 bytes (for RenderText loop)
ImVector<ImWchar> IndexLookup; // 12-16 // out // // Sparse. Index glyphs by Unicode code-point.
ImVector<ImU16> IndexLookup; // 12-16 // out // // Sparse. Index glyphs by Unicode code-point.
ImVector<ImFontGlyph> Glyphs; // 12-16 // out // // All glyphs.
const ImFontGlyph* FallbackGlyph; // 4-8 // out // = FindGlyph(FontFallbackChar)