Table of Contents

Struct GlyphMetrics

Namespace
SixLabors.Fonts
Assembly
SixLabors.Fonts.dll

Represents one laid-out glyph entry in final layout order.

public readonly struct GlyphMetrics
Inherited Members

Properties

Advance

Gets the positioned logical advance rectangle for the glyph entry in pixel units.

public FontRectangle Advance { get; }

Property Value

FontRectangle

Bounds

Gets the rendered rectangle for the glyph entry in pixel units.

public FontRectangle Bounds { get; }

Property Value

FontRectangle

CodePoint

Gets the Unicode code point represented by the glyph entry.

public CodePoint CodePoint { get; }

Property Value

CodePoint

Font

Gets the font used to shape and render the glyph entry.

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

RenderableBounds

Gets the union of the positioned logical advance rectangle and rendered rectangle 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

Methods

ToString()

Returns the fully qualified type name of this instance.

public override string ToString()

Returns

string

The fully qualified type name.