IFontEncoding.UnicodeToGid
IFontEncoding.UnicodeToGid method
解码 Unicode 并返回字形 ID。字形 ID 是针对字形的唯一编号,取决于字体类型。例如:Type1 的 ID 是字形名称,属于 (GlyphStringId) 类的实例。TTF 的 ID 是整数索引,属于 (GlyphUInt32Id) 类的实例。
public GlyphId UnicodeToGid(uint unicode)
| 参数 | 类型 | 描述 |
|---|---|---|
| unicode | UInt32 | 用于获取 glyph 标识符的 Unicode。 |
返回值
传入的 Unicode 对应的 glyph 标识符。
另见
- class GlyphId
- interface IFontEncoding
- namespace Aspose.Font
- assembly Aspose.Font