Table of Contents

Struct GraphemeMetrics

Namespace
SixLabors.Fonts
Assembly
SixLabors.Fonts.dll

Represents one coalesced grapheme in final layout order.

public readonly struct GraphemeMetrics
Inherited Members

Properties

Advance

Gets the positioned logical advance rectangle for the grapheme in pixel units.

public FontRectangle Advance { get; }

Property Value

FontRectangle

Bounds

Gets the rendered glyph bounds for the grapheme in pixel units.

public FontRectangle Bounds { get; }

Property Value

FontRectangle

Font

Gets the font used to shape and render the grapheme.

public Font Font { get; }

Property Value

Font

GraphemeIndex

Gets the zero-based grapheme index in the original text.

public int GraphemeIndex { get; }

Property Value

int

IsLineBreak

Gets a value indicating whether this grapheme represents a line break.

public bool IsLineBreak { get; }

Property Value

bool

RenderableBounds

Gets the union of the positioned logical advance bounds and rendered glyph bounds in pixel units.

public FontRectangle RenderableBounds { get; }

Property Value

FontRectangle

StringIndex

Gets the zero-based UTF-16 code unit index in the original text.

public int StringIndex { get; }

Property Value

int