Aspose::Font::Ttf::TtfEncoding class
Contents
[
Hide
]TtfEncoding class
Represents TTF Font encoding.
class TtfEncoding : public Aspose::Font::IFontEncoding
Methods
Method | Description |
---|---|
DecodeToGid(uint32_t) override | TTF 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) override | Parametrized version allows to use specific CMap table (not unicode). |
Encode(uint32_t, uint32_t) override | Encodes the glyph. For TTF Fonts the character code is unicode. |
GidToUnicode(System::SharedPtr<Aspose::Font::Glyphs::GlyphId>) override | Decodes 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) override | Decodes a unicode and returns glyph id. |
See Also
- Class IFontEncoding
- Namespace Aspose::Font::Ttf
- Library Aspose.Font for C++