Aspose::Font::Ttf::TtfEncoding class

TtfEncoding class

Represents TTF Font encoding.

class TtfEncoding : public Aspose::Font::IFontEncoding

Methods

MethodDescription
DecodeToGid(uint32_t) overrideTTF Font’s DecodeToGlyphId implementation finds unicode table and returns glyph id for unicode char. 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.
DecodeToGidParameterized(System::SharedPtr<IEncodingParameters>, uint32_t) overrideParametrized version allows to use specific CMap table (not unicode).
Encode(uint32_t, uint32_t) overrideEncodes the glyph. For TTF Fonts the character code is unicode.
GidToUnicode(System::SharedPtr<Aspose::Font::Glyphs::GlyphId>) overrideDecodes glyph id 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.
UnicodeToGid(uint32_t) overrideDecodes a unicode and returns glyph id.

See Also