Docsv3.20.2
Back to API Reference
Struct

ShapedGlyph

sealed

Represents a shaped glyph with positioning information from the shaping engine.

Remarks

Produced by Shaper after OpenType shaping. Contains the glyph ID, cluster mapping back to codepoints, and advance/offset values.
public static const int NoGlyph

glyphId of a slot whose visual a modifier supplies itself; the font holds no glyph behind it, so no font or atlas query may be made with it.

public int glyphId

The font-specific glyph identifier, or NoGlyph.

public int cluster

Absolute index into the codepoints array of the first codepoint this glyph renders; codepoints shaping removes, such as default-ignorables, start no cluster and belong to the logically preceding one.

public float advanceX

Horizontal advance to the next glyph position.

public float advanceY

Vertical advance to the next glyph position.

public float offsetX

Horizontal offset from the pen position for rendering.

public float offsetY

Vertical offset from the pen position for rendering.