IGlyphAccessor

public interface IGlyphAccessor

Defines functionality to retrieve specified glyph identifiers and glyphs.

Methods

MethodDescription
getAllGlyphIds()Returns all glyph ids, available in the Font.
getGlyphById(GlyphId id)Returns glyph by glyph id.
getGlyphIdType()Glyph id type specification.
getGlyphsForText(String text)Get glyphs representation for text.

getAllGlyphIds()

public abstract GlyphId[] getAllGlyphIds()

Returns all glyph ids, available in the Font. 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.

Returns: com.aspose.font.GlyphId[] - Glyph identifiers.

getGlyphById(GlyphId id)

public abstract Glyph getGlyphById(GlyphId id)

Returns glyph by glyph id. Glyph id is a unique number for a glyph, which is font type dependent. GlyphId - derived object. For example: Type1’s id is a glyph name, instance of ( GlyphStringId ) class. TTF’s id is an int index, instance of ( GlyphUInt32Id ) class.

Parameters:

ParameterTypeDescription
idGlyphIdglyph ID.

Returns: Glyph - Glyph

getGlyphIdType()

public abstract GlyphIdType getGlyphIdType()

Glyph id type specification.

Returns: GlyphIdType - Id type specification.

getGlyphsForText(String text)

public abstract GlyphId[] getGlyphsForText(String text)

Get glyphs representation for text.

Parameters:

ParameterTypeDescription
textjava.lang.StringInput text.

Returns: com.aspose.font.GlyphId[] - GlyphId array.