类 Type1Encoding
Type1Encoding class
表示 Type1 字体编码。
public class Type1Encoding : IFontEncoding, ISupportsNameAddressing
方法
| 名称 | 描述 |
|---|---|
| DecodeToGid(uint) | 将 Gid 解码为 unicode。Glyph id 是字形的唯一编号,取决于字体类型。例如:Type1 的 id 是字形名称,是 (GlyphStringId) 类的实例。TTF 的 id 是整数索引,是 (GlyphUInt32Id) 类的实例。 |
| DecodeToGidParameterized(IEncodingParameters, uint) | 参数化解码方法。不支持 Type1 字体类型。 |
| Encode(uint, uint) | 对字形进行编码。对于 TTF 字体,字符码是 unicode。不支持 Type1 字体类型。 |
| GetNameToCharCodeIndex() | 返回名称到字符码的编码映射。注意:字符码不是 Unicode。字符码是字体编码 “表” 中的字符索引。 |
| GidToUnicode(GlyphId) | 将 Gid 解码为 Unicode。Glyph id 是字形的唯一编号,取决于字体类型。例如:Type1 的 id 是字形名称,是 (GlyphStringId) 类的实例。TTF 的 id 是整数索引,是 (GlyphUInt32Id) 类的实例。 |
| UnicodeToGid(uint) | 返回对应 unicode 的 GlyphId。如果字体不包含该 unicode 的字形,则返回 notdef。Glyph id 是字形的唯一编号,取决于字体类型。例如:Type1 的 id 是字形名称,是 (GlyphStringId) 类的实例。TTF 的 id 是整数索引,是 (GlyphUInt32Id) 类的实例。 |
另见
- interface IFontEncoding
- interface ISupportsNameAddressing
- namespace Aspose.Font.Type1
- assembly Aspose.Font