Fonts: add ImFontGlyph::SourceIdx. Extract code out of DebugNodeFont() into DebugNodeFontGlyphesForSrcMask().
(src_mask unused in this commit)
This commit is contained in:
@@ -3484,7 +3484,8 @@ struct ImFontGlyph
|
||||
{
|
||||
unsigned int Colored : 1; // Flag to indicate glyph is colored and should generally ignore tinting (make it usable with no shift on little-endian as this is used in loops)
|
||||
unsigned int Visible : 1; // Flag to indicate glyph has no visible pixels (e.g. space). Allow early out when rendering.
|
||||
unsigned int Codepoint : 30; // 0x0000..0x10FFFF
|
||||
unsigned int SourceIdx : 4; // Index of source in parent font
|
||||
unsigned int Codepoint : 26; // 0x0000..0x10FFFF
|
||||
float AdvanceX; // Horizontal distance to advance cursor/layout position.
|
||||
float X0, Y0, X1, Y1; // Glyph corners. Offsets from current cursor/layout position.
|
||||
float U0, V0, U1, V1; // Texture coordinates for the current value of ImFontAtlas->TexRef. Cached equivalent of calling GetCustomRect() with PackId.
|
||||
|
||||
Reference in New Issue
Block a user