Class Type1Encoding

Type1Encoding class

Represents Type1 Font encoding.

public class Type1Encoding : IFontEncoding, ISupportsNameAddressing

Methods

NameDescription
DecodeToGid(uint)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.
DecodeToGidParameterized(IEncodingParameters, uint)Parameterized decode method. Not supported for Type1 Font type.
Encode(uint, uint)Encodes the glyph. For TTF Fonts the character code is unicode. Not supported for Type1 Font types.
GetNameToCharCodeIndex()Returns name to character code encoding map. Note: Character code is not a unicode. Character code is a char index in Font encoding “table”.
GidToUnicode(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.
UnicodeToGid(uint)Returns GlyphId for unicode. Or notdef if font doesn’t contain glyph for the 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.

See Also