See ImFontAtlas::AddCustomRectXXX functions.
| 2829 | |
| 2830 | // See ImFontAtlas::AddCustomRectXXX functions. |
| 2831 | struct ImFontAtlasCustomRect |
| 2832 | { |
| 2833 | unsigned short Width, Height; // Input // Desired rectangle dimension |
| 2834 | unsigned short X, Y; // Output // Packed position in Atlas |
| 2835 | unsigned int GlyphID; // Input // For custom font glyphs only (ID < 0x110000) |
| 2836 | float GlyphAdvanceX; // Input // For custom font glyphs only: glyph xadvance |
| 2837 | ImVec2 GlyphOffset; // Input // For custom font glyphs only: glyph display offset |
| 2838 | ImFont* Font; // Input // For custom font glyphs only: target font |
| 2839 | ImFontAtlasCustomRect() { Width = Height = 0; X = Y = 0xFFFF; GlyphID = 0; GlyphAdvanceX = 0.0f; GlyphOffset = ImVec2(0, 0); Font = NULL; } |
| 2840 | bool IsPacked() const { return X != 0xFFFF; } |
| 2841 | }; |
| 2842 | |
| 2843 | // Flags for ImFontAtlas build |
| 2844 | enum ImFontAtlasFlags_ |
nothing calls this directly
no outgoing calls
no test coverage detected