PeachDrawing.Skia

PeachTextShaper Class

An ISkiaTextShaper that shapes with the PeachDrawing.Text engine: OpenType substitution and positioning (ligatures, kerning, mark attachment, contextual lookups), Arabic, Syriac, Indic and Khmer shaping. Pass it to SkiaRenderContext to give Native text real shaping with no shaping library beyond this package.

public sealed class PeachTextShaper : PeachDrawing.Skia.ISkiaTextShaper

Inheritance System.Object → PeachTextShaper

Implements ISkiaTextShaper

Remarks

The engine reads the font file Skia has loaded (the same bytes, so glyph ids mean the same in both) and shapes with it; Skia draws the glyphs. A typeface whose file cannot be read back (a platform font Skia will not hand out a stream for) is shaped by the basic shaper instead, so text is never lost. Weight and slant are taken from the typeface itself.

A shaper holds the fonts it has read for as long as it lives, and is used from one thread at a time by the context. It owns no native resource, so there is nothing to dispose.

Methods  
Shape(string, SKFont) Shapes text in font, which carries the typeface, size and styling to shape with.