Package com.itextpdf.io.font.cmap
Class CMapCodepointToCid
java.lang.Object
com.itextpdf.io.font.cmap.AbstractCMap
com.itextpdf.io.font.cmap.CMapCodepointToCid
Class represents real codepoint-CID mapping without any additional manipulation.
See CMapCidToCodepoint for CID-codepoint representation.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an empty character code to CID map.CMapCodepointToCid(CMapCidToCodepoint reverseMap) Creates a map by reversing a CID to code mapping. -
Method Summary
Modifier and TypeMethodDescriptionintlookup(int codepoint) Looks up the CID assigned to a character code.Methods inherited from class com.itextpdf.io.font.cmap.AbstractCMap
decodeStringToByte, getName, getOrdering, getRegistry, getSupplement, toUnicodeString
-
Constructor Details
-
CMapCodepointToCid
public CMapCodepointToCid()Creates an empty character code to CID map. -
CMapCodepointToCid
Creates a map by reversing a CID to code mapping.- Parameters:
-
reverseMap- the CID to code mapping to reverse
-
-
Method Details
-
lookup
public int lookup(int codepoint) Looks up the CID assigned to a character code.- Parameters:
-
codepoint- the integer representation of the encoded character code - Returns:
-
the mapped CID, or
0when absent
-