Package com.itextpdf.io.font.cmap
Class CMapUniCid
java.lang.Object
com.itextpdf.io.font.cmap.AbstractCMap
com.itextpdf.io.font.cmap.CMapUniCid
Maps Unicode code points to CIDs.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionExports this mapping as a ToUnicode CMap.int[]Returns all mapped code points.intlookup(int character) Looks up the CID assigned to a Unicode code point.Methods inherited from class com.itextpdf.io.font.cmap.AbstractCMap
decodeStringToByte, getName, getOrdering, getRegistry, getSupplement, toUnicodeString
-
Constructor Details
-
CMapUniCid
public CMapUniCid()
-
-
Method Details
-
lookup
public int lookup(int character) Looks up the CID assigned to a Unicode code point.- Parameters:
-
character- the Unicode code point - Returns:
-
the mapped CID, or
0when absent
-
exportToUnicode
Exports this mapping as a ToUnicode CMap.- Returns:
- a newly created CMap containing this map's CID-to-Unicode mappings
-
getCodePoints
public int[] getCodePoints()Returns all mapped code points.- Returns:
- an array containing all mapped code points
-