Package com.itextpdf.io.font
Class CMapEncoding
java.lang.Object
com.itextpdf.io.font.CMapEncoding
-
Constructor Summary
ConstructorDescriptionCMapEncoding
(String cmap) CMapEncoding
(String cmap, byte[] cmapBytes) CMapEncoding
(String cmap, String uniMap) -
Method Summary
Modifier and TypeMethodDescriptionint
fillCmapBytes
(int cid, byte[] array, int offset) void
fillCmapBytes
(int cid, ByteBuffer buffer) int
getCidCode
(int cmapCode) byte[]
getCmapBytes
(int cid) int
getCmapBytesLength
(int cid) int
boolean
boolean
isBuiltWith
(String cmap) Checks whether theCMapEncoding
was built with corresponding cmap name.boolean
isDirect()
-
Constructor Details
-
CMapEncoding
- Parameters:
-
cmap
- CMap name.
-
CMapEncoding
- Parameters:
-
cmap
- CMap name. -
uniMap
- CMap to convert Unicode value to CID.
-
CMapEncoding
-
-
Method Details
-
isDirect
public boolean isDirect() -
hasUniMap
public boolean hasUniMap() -
getRegistry
-
getOrdering
-
getSupplement
public int getSupplement() -
getUniMapName
-
getCmapName
-
isBuiltWith
Checks whether theCMapEncoding
was built with corresponding cmap name.- Parameters:
-
cmap
- a CMAP - Returns:
- true, if the CMapEncoding was built with the cmap. Otherwise false.
-
getCmapBytes
public byte[] getCmapBytes(int cid) -
fillCmapBytes
public int fillCmapBytes(int cid, byte[] array, int offset) -
fillCmapBytes
-
getCmapBytesLength
public int getCmapBytesLength(int cid) -
getCidCode
public int getCidCode(int cmapCode) -
getCodeSpaceRanges
-