TtfFont.GetGlyphComponentsById

GetGlyphComponentsById(GlyphId, GlyphIdList)

Gets a glyph by glyph identifier passed and fills passed list of glyph identifiers with components of this glyph. 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 virtual void GetGlyphComponentsById(GlyphId id, GlyphIdList componentsToPopulate)
ParameterTypeDescription
idGlyphIdGlyph id.
componentsToPopulateGlyphIdListList of glyph identifiers to fill.

Remarks

Empty collection componentsToPopulate should be passed that will contain glyph components id list.

See Also


GetGlyphComponentsById(string, GlyphIdList)

Gets a glyph by glyph name passed and fills passed list of glyph identifiers with components of this glyph.

public void GetGlyphComponentsById(string glyphName, GlyphIdList componentsToPopulate)
ParameterTypeDescription
glyphNameStringGlyph name.
componentsToPopulateGlyphIdListList of glyph identifiers to fill.

Remarks

Empty collection componentsToPopulate should be passed that will contain glyph components id list.

See Also


GetGlyphComponentsById(uint, GlyphIdList)

Gets a glyph by glyph index passed and fills passed list of glyph identifiers with components of this glyph.

public void GetGlyphComponentsById(uint id, GlyphIdList componentsToPopulate)
ParameterTypeDescription
idUInt32Glyph index.
componentsToPopulateGlyphIdListList of glyph identifiers to fill.

Remarks

Empty collection componentsToPopulate should be passed that will contain glyph components id list.

See Also