Aspose::Font::Type1::Type1Encoding 类

Type1Encoding class

表示 Type1Font 编码。

class Type1Encoding : public Aspose::Font::IFontEncoding,
                      public Aspose::Font::ISupportsNameAddressing

方法

方法描述
DecodeToGid(uint32_t) override将 Gid 解码为 unicode。Glyph id 是字形的唯一编号,取决于字体类型。例如:Type1 的 id 是字形名称,是 (GlyphStringId) 类的实例。TTF 的 id 是整数索引,是 (GlyphUInt32Id) 类的实例。
DecodeToGidParameterized(System::SharedPtr<IEncodingParameters>, uint32_t) override参数化解码方法。不支持 Type1Font 类型。
Encode(uint32_t, uint32_t) override对字形进行编码。对于 TTF 字体,字符码是 unicode。不支持 Type1Font 类型。
GetNameToCharCodeIndex() override返回名称到字符码的编码映射。注意:字符码不是 Unicode。字符码是 Font 编码 “table” 中的字符索引。
GidToUnicode(System::SharedPtr<Glyphs::GlyphId>) override将 Gid 解码为 Unicode。Glyph id 是字形的唯一编号,取决于字体类型。例如:Type1 的 id 是字形名称,是 (GlyphStringId) 类的实例。TTF 的 id 是整数索引,是 (GlyphUInt32Id) 类的实例。
UnicodeToGid(uint32_t) override返回对应 unicode 的 GlyphId。如果字体不包含该 unicode 的字形,则返回 notdef。Glyph id 是字形的唯一编号,取决于字体类型。例如:Type1 的 id 是字形名称,是 (GlyphStringId) 类的实例。TTF 的 id 是整数索引,是 (GlyphUInt32Id) 类的实例。

另见