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 SourceInstance
Gets the glyph instance.
Declaration
public readonly GlyphInstance Instance { get; }
Property Value
Type | Description |
---|---|
GlyphInstance | The glyph instance. |
Methods
| Improve this Doc View SourceBoundingBox(Vector2, Vector2)
Calculates the bounding box
Declaration
public readonly FontRectangle BoundingBox(Vector2 location, Vector2 dpi)
Parameters
Type | Name | Description |
---|---|---|
Vector2 | location | location to calculate from. |
Vector2 | dpi | dpi to calualtes in relation to |
Returns
Type | Description |
---|---|
FontRectangle | The bounding box |