Struct Glyph
Represents a font-specific glyph at the point size used for layout and rendering.
public readonly struct Glyph
- Inherited Members
Properties
GlyphMetrics
Gets the font metrics for this glyph.
public FontGlyphMetrics GlyphMetrics { get; }
Property Value
Methods
BoundingBox(GlyphLayoutMode, Vector2, float)
Calculates the rendered glyph bounds for the specified layout mode and origin.
public FontRectangle BoundingBox(GlyphLayoutMode mode, Vector2 glyphOrigin, float dpi)
Parameters
modeGlyphLayoutModeThe glyph layout mode to measure with.
glyphOriginVector2The glyph origin to calculate the bounds from.
dpifloatThe DPI to measure the glyph at.
Returns
- FontRectangle
The rendered glyph bounds.