IGlyphAccessor

public interface IGlyphAccessor

Defines functionality to retrieve specified glyph identifiers and glyphs.

Methods

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

getGlyphIdType()

public abstract GlyphIdType getGlyphIdType()

Glyph id type specification.

Returns: GlyphIdType - Id type specification.

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.

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.

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