csharp
public readonly record struct ShapedGlyphOne glyph as the shaper produced it, in the font's design units.
No guide page documents this yet — the page shows what the code says about itself.
Fields and properties (6)
public ushort GlyphIdThe glyph's index in the font. Not a character.
public int ClusterThe UTF-16 index of the first character this glyph belongs to. Several glyphs may share one cluster and one glyph may cover several characters; the cluster is a range, and where it ends is only knowable from where the next one starts.
public float XAdvanceHow far the pen moves after drawing it.
public float YAdvanceHow far the pen moves vertically. Zero for horizontal text.
public float XOffsetWhere to draw it relative to the pen.
public float YOffsetDitto, positive upwards.
Methods (1)
public ShapedGlyph(ushort GlyphId, int Cluster, float XAdvance, float YAdvance, float XOffset, float YOffset)One glyph as the shaper produced it, in the font's design units.
Used by (5)
- LineWrapperVixen.Ui.Text
- ShapedRunVixen.Ui.Text
- ShapedTextVixen.Ui.Text
- ShapingTestsVixen.Ui.Text.Tests
- TextShaperVixen.Ui.Text