public static class TextShaperTurns text into positioned glyphs.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
The shaping itself is HarfBuzz's — ADR-009's dependency register names it and docs/plan/spikes/text-harfbuzz cleared it. What is Vixen's is everything around the call: which runs the text is cut into, what direction and script each one is given, which order the results are drawn in, and how a glyph is related back to the character it came from.
That distinction decides how this is tested. A comparison against hb_shape would be HarfBuzz judging itself and would survive any mistake in the paragraph above. The Consortium's text-rendering-tests would not: its expectations were written from the OpenType specification by people who were not running a shaper, and shaping a Kannada string as Latin fails them.
Methods (1)
public static ShapedText Shape(FontFace font, string text, ParagraphDirection direction = Auto, FontVariation? variation = null)Shapes a paragraph.
Used by (9)
- CaretTestsVixen.Ui.Text.Tests
- FontVariationTestsVixen.Ui.Text.Tests
- LineWrapTestsVixen.Ui.Text.Tests
- ShapingCacheVixen.Ui.Text
- ShapingCacheTestsVixen.Ui.Text.Tests
- ShapingConformanceTestsVixen.Ui.Text.Tests
- ShapingTestsVixen.Ui.Text.Tests
- TextTestsVixen.Ui.Tests
- VariationConformanceTestsVixen.Ui.Text.Tests