Package com.itextpdf.io.font.cmap
Class CMapCidToCodepoint
java.lang.Object
com.itextpdf.io.font.cmap.AbstractCMap
com.itextpdf.io.font.cmap.CMapCidToCodepoint
Maps character identifiers to their encoded character code byte sequences.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a list containing sequential pairs of code space beginning and endings: (begincodespacerange1, endcodespacerange1, begincodespacerange2, endcodespacerange1, ...)com.itextpdf.io.util.IntHashtableBuilds a mapping from integer character codes to CIDs.byte[]lookup(int cid) Looks up the character code assigned to a CID.Methods inherited from class com.itextpdf.io.font.cmap.AbstractCMap
decodeStringToByte, getName, getOrdering, getRegistry, getSupplement, toUnicodeString
-
Constructor Details
-
CMapCidToCodepoint
public CMapCidToCodepoint()
-
-
Method Details
-
lookup
public byte[] lookup(int cid) Looks up the character code assigned to a CID.- Parameters:
-
cid- the character identifier - Returns:
- the mapped byte sequence, or a shared empty array when no mapping exists
-
getReversMap
public com.itextpdf.io.util.IntHashtable getReversMap()Builds a mapping from integer character codes to CIDs.- Returns:
- a new reverse mapping
-
getCodeSpaceRanges
Returns a list containing sequential pairs of code space beginning and endings: (begincodespacerange1, endcodespacerange1, begincodespacerange2, endcodespacerange1, ...)- Returns:
-
list of
byte[]that contain code space ranges
-