GetTextShaper

GetTextShaper(string, int)

返回由指定字体的文本整形器的新实例fontPathfaceIndex.

public ITextShaper GetTextShaper(string fontPath, int faceIndex)
范围类型描述
fontPathString字体文件的绝对路径。
faceIndexInt32TrueType 字体集合中的字体索引,如果指定的字体文件不是 TrueType 字体集合,则为 或 0。

也可以看看


GetTextShaper(string, byte[], int)

返回由以下字体表示的文本塑造器的新实例fontBlobfaceIndex.

public ITextShaper GetTextShaper(string fontId, byte[] fontBlob, int faceIndex)
范围类型描述
fontIdString可与所提供字体唯一关联的唯一标识符fontBlob.
fontBlobByte[]包含字体数据的字节数组。
faceIndexInt32TrueType 字体集合中的字体索引,如果为 或 0fontBlob不是 TrueType 字体集合。

也可以看看