Aspose::Font::IFontEncoding class

IFontEncoding class

Defines an interface for Font encoding.

class IFontEncoding : public virtual System::Object

Methods

MethodDescription
virtual DecodeToGid(uint32_t)Decodes a character code and returns glyph id. Glyph id is a unique number for a glyph, which is font type dependent. For example: Type1’s id is a glyph name, instance of (GlyphStringId) class. TTF’s id is an int index, instance of (GlyphUInt32Id) class. Note: character code is not necessary a unicode. Character code is a char index in Font encoding “table”.
virtual DecodeToGidParameterized(System::SharedPtr<IEncodingParameters>, uint32_t)Parameterized decode method.
virtual Encode(uint32_t, uint32_t)Encodes the glyph. For TTF Fonts the charCode is unicode.
virtual GidToUnicode(System::SharedPtr<Glyphs::GlyphId>)Decodes Gid to unicode. Glyph id is a unique number for a glyph, which is font type dependent. For example: Type1’s id is a glyph name, instance of (GlyphStringId) class. TTF’s id is an int index, instance of (GlyphUInt32Id) class.
virtual UnicodeToGid(uint32_t)Decodes a unicode and returns glyph id. Glyph id is a unique number for a glyph, which is font type dependent. For example: Type1’s id is a glyph name, instance of (GlyphStringId) class. TTF’s id is an int index, instance of (GlyphUInt32Id) class.

See Also