Vixen
02b45cc4
csharp
public readonly record struct ShapedGlyph

One 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 GlyphId

    The glyph's index in the font. Not a character.

  • public int Cluster

    The 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 XAdvance

    How far the pen moves after drawing it.

  • public float YAdvance

    How far the pen moves vertically. Zero for horizontal text.

  • public float XOffset

    Where to draw it relative to the pen.

  • public float YOffset

    Ditto, 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