TtfEncoding.DecodeToGid

TtfEncoding.DecodeToGid method

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.

public GlyphId DecodeToGid(uint unicode)
ParameterTypeDescription
unicodeUInt32Character code to get glyph identifier for.

Return Value

Glyph identifier related to character code passed.

See Also