Vixen
02b45cc4
csharp
public sealed class ShapedRun

One shaped run: a stretch of one direction, one script and one font.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

⚠ The glyphs are in visual order, which for a right-to-left run means their clusters descend. Code that walks glyphs and expects clusters to increase is correct on Latin and wrong on everything else — the spike that cleared HarfBuzz recorded this as the first thing to know before writing against it.

Fields and properties (4)

  • public TextItem Item

    Which stretch of the source this came from.

  • public FontFace Font

    The font it was shaped with.

  • public IReadOnlyList<ShapedGlyph> Glyphs

    The glyphs, in visual order.

  • public float Advance

    The run's total width, in design units.

Used by (5)

  • CaretTestsVixen.Ui.Text.Tests
  • LineWrapperVixen.Ui.Text
  • ShapedTextVixen.Ui.Text
  • ShapingTestsVixen.Ui.Text.Tests
  • TextShaperVixen.Ui.Text