TtfFont.GetGlyphById

GetGlyphById(GlyphId)

Returns glyph by glyph id. Glyph id is a unique number for a glyph, which is font type dependent. TTF Font glyph id can be instance of (GlyphStringId) class or (GlyphUInt32Id) class. Name (string) glyph addressing is supported for TTF Fonts via Post table mapping. In case CFF Font inside, the CFF structures are used to address glyphs by name.

public override Glyph GetGlyphById(GlyphId id)
ParameterTypeDescription
idGlyphIdGlyph id.

Return Value

Glyph.

See Also


GetGlyphById(string)

Returns glyph by glyph name. Name (string) glyph addressing is supported for TTF fonts via Post table mapping. In case CFF Font inside, the CFF structures are used to address glyphs by name.

public Glyph GetGlyphById(string glyphName)
ParameterTypeDescription
glyphNameStringGlyph string identifier.

Return Value

Glyph.

See Also


GetGlyphById(uint)

Returns glyph by glyph id.

public Glyph GetGlyphById(uint id)
ParameterTypeDescription
idUInt32Glyph index.

Return Value

Glyph.

See Also