Class TtfEncoding

TtfEncoding class

Represents TTF Font encoding.

public class TtfEncoding : IFontEncoding

Methods

NameDescription
DecodeToGid(uint)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(IEncodingParameters, uint)Parametrized version allows to use specific CMap table (not unicode).
Encode(uint, uint)Encodes the glyph. For TTF Fonts the character code is unicode.
GidToUnicode(GlyphId)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(uint)Decodes a unicode and returns glyph id.

See Also