Vixen
02b45cc4
csharp
public readonly record struct ClusterSpan

One shaping cluster: the characters it covers and the space it occupies.

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

Fields and properties (6)

  • public int Start

    The first character it covers, as a UTF-16 index.

  • public int End

    One past the last. Clusters tile the text without gaps or overlaps.

  • public float X

    Its left edge, in design units from the start of the line.

  • public float Advance

    Its width. Zero if every glyph in it was a deleted default-ignorable.

  • public bool IsRightToLeft

    Whether the characters run right to left inside it — which decides which edge the first character is at, not which edge is X.

  • public float Right

    Its right edge.

Methods (1)

  • public ClusterSpan(int Start, int End, float X, float Advance, bool IsRightToLeft)

    One shaping cluster: the characters it covers and the space it occupies.

Used by (2)

  • CaretTestsVixen.Ui.Text.Tests
  • ShapedTextVixen.Ui.Text