Class HarfBuzzShaper
A shaper for TextBlock and TextLine that shapes with a HarfBuzz as HBShape does with hb-shape: each character in the first font that has it, a mark in the font of the character it is on, each run of one font shaped in that font, and the lines broken at spaces and, in Thai, Lao, Khmer and Burmese, between words, by ICU's dictionaries of the world fonts. Two HarfBuzzes that shape alike give the same lines.
public sealed class HarfBuzzShaper : IShaper
- Inheritance
-
HarfBuzzShaper
- Implements
- Inherited Members
Constructors
HarfBuzzShaper(IHarfBuzz)
A shaper of the HarfBuzz.
public HarfBuzzShaper(IHarfBuzz harfBuzz)
Parameters
harfBuzzIHarfBuzzthe HarfBuzz.
Methods
Shape(ShapingRequest)
Shapes the text with the HarfBuzz, each run of one font in that font, and breaks it into lines no wider than the width.
public List<ShapedLine> Shape(ShapingRequest request)
Parameters
requestShapingRequestthe text, its language, the font files, the font size and the width of the lines.
Returns
- List<ShapedLine>
the lines, in order.