Interface IHarfBuzz
The engine under a HarfBuzzShaper: it shapes runs of text, each in one font, as HarfBuzz does. HBShape is one, which runs hb-shape; the NuGet package PDFjet.HarfBuzz gives another, HarfBuzz itself through HarfBuzzSharp, with nothing to install.
public interface IHarfBuzz
Methods
ShapeRuns(byte[], IList<string>, string)
Shapes each run of text in the font file, in the language (a BCP 47 tag, or null), as HarfBuzz does.
IList<HarfBuzzGlyph[]> ShapeRuns(byte[] font, IList<string> runs, string language)
Parameters
fontbyte[]the font file.
runsIList<string>the runs of text, each shaped on its own.
languagestringthe language, or null.
Returns
- IList<HarfBuzzGlyph[]>
the glyphs of each run, in font units.