GetTextShaper

GetTextShaper(string, int)

Returns new instance of a text shaper for the font specified by fontPath and faceIndex.

public ITextShaper GetTextShaper(string fontPath, int faceIndex)
ParameterTypeDescription
fontPathStringAn absolute path to the font file.
faceIndexInt32An index of the font face in the TrueType font collection, or 0 if specified font file is not TrueType font collection.

See Also


GetTextShaper(string, byte[], int)

Returns new instance of a text shaper for the font represented by fontBlob and faceIndex.

public ITextShaper GetTextShaper(string fontId, byte[] fontBlob, int faceIndex)
ParameterTypeDescription
fontIdStringA unique identifier that can be uniquely associated with the provided font fontBlob.
fontBlobByte[]Byte array with the font data.
faceIndexInt32An index of the font face in the TrueType font collection, or 0 if fontBlob is not TrueType font collection.

See Also