ITextShaperFactory

public interface ITextShaperFactory

An interface of a factory for constructing ITextShaper implementations.

Methods

MethodDescription
getTextShaper(String fontId, byte[] fontBlob, int faceIndex)Returns new instance of a text shaper for the font represented by fontBlob and faceIndex .
getTextShaper(String fontPath, int faceIndex)Returns new instance of a text shaper for the font specified by fontPath and faceIndex .

getTextShaper(String fontId, byte[] fontBlob, int faceIndex)

public abstract ITextShaper getTextShaper(String fontId, byte[] fontBlob, int faceIndex)

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

Parameters:

ParameterTypeDescription
fontIdjava.lang.StringA unique identifier that can be uniquely associated with the provided font fontBlob .
fontBlobbyte[]Byte array with the font data.
faceIndexintAn index of the font face in the TrueType font collection, or 0 if fontBlob is not TrueType font collection.

Returns: ITextShaper

getTextShaper(String fontPath, int faceIndex)

public abstract ITextShaper getTextShaper(String fontPath, int faceIndex)

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

Parameters:

ParameterTypeDescription
fontPathjava.lang.StringAn absolute path to the font file.
faceIndexintAn index of the font face in the TrueType font collection, or 0 if specified font file is not TrueType font collection.

Returns: ITextShaper