public sealed class ShapedTextA whole paragraph, shaped and ordered for drawing.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
Everything here is in the font's design units, not pixels — see FontFace for why. Multiply by size / UnitsPerEm at the point of drawing.
Fields and properties (4)
public string TextThe text it was shaped from.
public IReadOnlyList<ShapedRun> RunsThe runs, in the order they are drawn — left to right.
public float AdvanceThe paragraph's width in design units.
public IReadOnlyList<ClusterSpan> ClustersThe shaping clusters, tiling the text, ordered as they are drawn.
Methods (5)
public IEnumerable<GlyphPlacement> Placements()Walks every glyph with the pen arithmetic already done.
public float CaretOffset(int index)Where a caret sits when it is in front of a character.
public float CaretOffset(int index, CaretAffinity affinity)Where a caret sits, given which side of the index it belongs to.
public int CaretIndexAt(float x)The caret position nearest a point, without which side of it the caret is on.
public (int Index, CaretAffinity Affinity) CaretPositionAt(float x)The caret nearest a point: where it is in the text, and which side it belongs to.
Used by (23)
- CaretTestsVixen.Ui.Text.Tests
- EntryVixen.Ui.Text
- FontFallbackTestsVixen.Ui.Tests
- FontFeatureTestsVixen.Ui.Text.Tests
- FontVariationTestsVixen.Ui.Text.Tests
- HyphensTestsVixen.Ui.Tests
- LanguageTestsVixen.Ui.Tests
- LineClampTestsVixen.Ui.Tests
- LineWrapTestsVixen.Ui.Text.Tests
- LineWrapperVixen.Ui.Text
- NumericFigureVisibilityTestsVixen.Ui.Styling.Utilities.Tests
- ShapingCacheVixen.Ui.Text
- ShapingCacheTestsVixen.Ui.Text.Tests
- ShapingConformanceTestsVixen.Ui.Text.Tests
- ShapingTestsVixen.Ui.Text.Tests
- TextLineVixen.Ui
- TextRunVixen.Ui
- TextShaperVixen.Ui.Text
- TextTestsVixen.Ui.Tests
- TextTransformTestsVixen.Ui.Tests
- UiElementVixen.Ui
- VariationConformanceTestsVixen.Ui.Text.Tests
- TextureTextVixen.Editor.TextureGraph