Table of Contents

Interface IHarfBuzz

Namespace
PDFjet.NET
Assembly
PDFjet.dll

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

font byte[]

the font file.

runs IList<string>

the runs of text, each shaped on its own.

language string

the language, or null.

Returns

IList<HarfBuzzGlyph[]>

the glyphs of each run, in font units.