Struct Glyph
A glyph from a particular font face.
Inherited Members
Namespace: SixLabors.Fonts
Assembly: SixLabors.Fonts.dll
Syntax
public readonly struct Glyph
Properties
| Improve this Doc View SourceGlyphMetrics
Gets the glyph metrics.
Declaration
public readonly GlyphMetrics GlyphMetrics { get; }
Property Value
Type | Description |
---|---|
GlyphMetrics |
Methods
| Improve this Doc View SourceBoundingBox(Vector2, Single)
Calculates the bounding box.
Declaration
public readonly FontRectangle BoundingBox(Vector2 location, float dpi)
Parameters
Type | Name | Description |
---|---|---|
Vector2 | location | The location to calculate from. |
Single | dpi | The dpi scale the bounds in relation to. |
Returns
Type | Description |
---|---|
FontRectangle | The bounding box |