Aspose::Font::Cff::CffEncoding class

CffEncoding class

Represents CFF Font encoding.

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

Methods

MethodDescription
DecodeToGid(uint32_t) overrideGets Gid for charCode passed. This method designed for a CFF CIDFonts, where charCode must be a valid CID value. Glyph id is a unique number for a glyph, which is font type dependent. CFF Font glyph id can be instance of (GlyphStringId) class or (GlyphUInt32Id) class.
DecodeToGidParameterized(System::SharedPtr<IEncodingParameters>, uint32_t) overrideParameterized decode method. Not supported for CFF Font type.
Encode(uint32_t, uint32_t) overrideEncodes the glyph. Not supported for CFF Font types.
GetNameToCharCodeIndex() overrideReturns name to character code encoding map. Note: character code is not a unicode. Character code is a char index in Font encoding “table”.
GetNameToGidIndex()Returns name to character code encoding map. Note: Character code is not a unicode. Character code is a char index in Font encoding “table”.
GetNameToSidIndex()Returns name to character code encoding map. Note: Character code is not a unicode. Character code is a char index in Font encoding “table”.
GetSidName(int32_t)Gets name for the SID specified.
GidToUnicode(System::SharedPtr<Aspose::Font::Glyphs::GlyphId>) overrideDecodes Gid to unicode. Glyph id is a unique number for a glyph, which is font type dependent. CFF Font glyph id can be instance of (GlyphStringId) class or (GlyphUInt32Id) class.
UnicodeToGid(uint32_t) overrideDecodes a unicode and returns glyph id. Glyph id is a unique number for a glyph, which is font type dependent. CFF Font glyph id can be instance of (GlyphStringId) class or (GlyphUInt32Id) class.

See Also