Struct Glyph
A glyph from a particular font face.
Inherited Members
Namespace: SixLabors.Fonts
Assembly: SixLabors.Fonts.dll
Syntax
public readonly struct Glyph
Properties
| Edit this page View SourceGlyphMetrics
Gets the glyph metrics.
Declaration
public GlyphMetrics GlyphMetrics { get; }
Property Value
Type | Description |
---|---|
GlyphMetrics |
Methods
| Edit this page View SourceBoundingBox(GlyphLayoutMode, Vector2, float)
Calculates the bounding box.
Declaration
public FontRectangle BoundingBox(GlyphLayoutMode mode, Vector2 location, float dpi)
Parameters
Type | Name | Description |
---|---|---|
GlyphLayoutMode | mode | The glyph layout mode to measure using. |
Vector2 | location | The location to calculate from. |
float | dpi | The DPI (Dots Per Inch) to measure the glyph at. |
Returns
Type | Description |
---|---|
FontRectangle | The bounding box |