Top Description Methods
org.apache.fontbox.ttf

public Interface CmapLookup

Known Direct Implementers
org.apache.fontbox.ttf.CmapSubtable, org.apache.fontbox.ttf.SubstitutingCmapLookup
Imports
java.util.List

An interface that abstracts the cid <-> codepoint lookup functionality of cmap.
Author
Aaron Madlon-Kay

Method Summary

Modifier and TypeMethod and Description
public List<Integer>

Returns:

a list with all character codes the given gid maps to
getCharCodes
(int
glyph id
gid
)

Returns all possible character codes for the given gid, or null if there is none.

public int

Returns:

glyphId the corresponding glyph id for the given character code
getGlyphId
(int
the given character code to be mapped
codePointAt
)

Returns the GlyphId linked with the given character code.

Method Detail

getCharCodesback to summary
public List<Integer> getCharCodes(int gid)

Returns all possible character codes for the given gid, or null if there is none.

Parameters
gid:int

glyph id

Returns:List<Integer>

a list with all character codes the given gid maps to

getGlyphIdback to summary
public int getGlyphId(int codePointAt)

Returns the GlyphId linked with the given character code.

Parameters
codePointAt:int

the given character code to be mapped

Returns:int

glyphId the corresponding glyph id for the given character code