Aspose::Font::Cff::CffEncoding 类

CffEncoding class

表示 CFF Font 编码。

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

方法

方法描述
DecodeToGid(uint32_t) override获取传入的 charCode 对应的 Gid。此方法针对 CFF CIDFonts 设计,其中 charCode 必须是有效的 CID 值。Glyph id 是字形的唯一编号,取决于字体类型。CFF Font 的 glyph id 可以是 (GlyphStringId) 类或 (GlyphUInt32Id) 类的实例。
DecodeToGidParameterized(System::SharedPtr<IEncodingParameters>, uint32_t) override参数化解码方法。不支持 CFF Font 类型。
Encode(uint32_t, uint32_t) override对字形进行编码。不支持 CFF Font 类型。
GetNameToCharCodeIndex() override返回名称到字符码的编码映射。注意:字符码不是 Unicode。字符码是 Font 编码 “table” 中的字符索引。
GetNameToGidIndex()返回名称到字符码的编码映射。注意:字符码不是 Unicode。字符码是 Font 编码 “table” 中的字符索引。
GetNameToSidIndex()返回名称到字符码的编码映射。注意:字符码不是 Unicode。字符码是 Font 编码 “table” 中的字符索引。
GetSidName(int32_t)获取指定 SID 的名称。
GidToUnicode(System::SharedPtr<Glyphs::GlyphId>) override将 Gid 解码为 unicode。Glyph id 是字形的唯一编号,取决于字体类型。CFF Font 的 glyph id 可以是 (GlyphStringId) 类或 (GlyphUInt32Id) 类的实例。
UnicodeToGid(uint32_t) override将 unicode 解码并返回 glyph id。Glyph id 是字形的唯一编号,取决于字体类型。CFF Font 的 glyph id 可以是 (GlyphStringId) 类或 (GlyphUInt32Id) 类的实例。

另见