TtfCMapFormat4Table

Inheritance: java.lang.Object, com.aspose.font.TtfCMapFormatBaseTable

public class TtfCMapFormat4Table extends TtfCMapFormatBaseTable

Represents Format4 CMap subtable of the TTF Font file.

Methods

MethodDescription
getGlyphIndex(long charCode)Gets a glyph index for a given character code.
getAllCodes()Gets all the codes from current CMap’s subtable.

getGlyphIndex(long charCode)

public long getGlyphIndex(long charCode)

Gets a glyph index for a given character code.

Parameters:

ParameterTypeDescription
charCodelongCharacter code.

Returns: long - Glyph index.

getAllCodes()

public ArrayList<Long> getAllCodes()

Gets all the codes from current CMap’s subtable.

Returns: java.util.ArrayList<java.lang.Long> - All codes from current CMap’s subtable.