Used in FontData to store all glyph character data from the font bitmap. For some help see:
http://blogs.msdn.com/garykac/articles/749188.aspx
View code on GitHub
Inheritance Hierarchy
DeltaEngine.Rendering2D.Fonts Glyph
Namespace: DeltaEngine.Rendering2D.Fonts
Assembly: DeltaEngine.Rendering2D.Fonts (in DeltaEngine.Rendering2D.Fonts.dll) Version: 1.1.1.0 (1.1.1)
Syntax
The Glyph type exposes the following members.
Constructors
Name | Description | |
---|---|---|
Glyph | Initializes a new instance of the Glyph class |
Fields
Name | Description | |
---|---|---|
AdvanceWidth |
How many pixels we have to advance to the right for this character (different from UV.Width)
View code on GitHub | |
Kernings |
Contains the amount of extra distances offsets between this character to any other one.
View code on GitHub | |
LeftSideBearing |
Left side bearing (in pixels) is used to offset the first character of a text to the left.
View code on GitHub | |
PrecomputedFontMapUV |
Not stored in the Xml font file because we can easily generate them at load time (UV/size).
View code on GitHub | |
RightSideBearing |
Right side bearing (in pixels) is used to offset last character of a text to the right.
View code on GitHub | |
UV |
UV Rectangle (in Pixels) used for drawing this character.
View code on GitHub |
See Also