Aspose::Font::IFontEncoding class
Contents
[
Hide
]IFontEncoding class
Defines an interface for Font encoding.
class IFontEncoding : public virtual System::Object
Methods
Method | Description |
---|---|
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
- Class Object
- Namespace Aspose::Font
- Library Aspose.Font for C++