Interface IShaper
A text engine that shapes text for TextBlock and TextLine: it wraps the text to a width and finds, for each line, the glyphs of the fonts and their places. PDFjet does not shape scripts such as Hindi and Khmer itself; a shaper does, and PDFjet draws what it found, as outlines. .NET has no text engine of its own that gives glyphs: the NuGet package PDFjet.HarfBuzz gives PDFjet HarfBuzz, nothing to install; SetShaper gives another, such as HBShape, which runs HarfBuzz's program hb-shape, used only when set.
public interface IShaper
Methods
Shape(ShapingRequest)
Wraps the text to the width and shapes each line.
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.