public class CMapEncoding extends Object
Constructor and Description |
---|
CMapEncoding(String cmap) |
CMapEncoding(String cmap, byte[] cmapBytes) |
CMapEncoding(String cmap, String uniMap) |
Modifier and Type | Method and Description |
---|---|
boolean |
containsCodeInCodeSpaceRange(int code, int length) |
int |
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) |
String |
getCmapName() |
String |
getOrdering() |
String |
getRegistry() |
int |
getSupplement() |
String |
getUniMapName() |
boolean |
hasUniMap() |
boolean |
isBuiltWith(String cmap)
Checks whether the CMapEncoding was built with corresponding cmap name.
|
boolean |
isDirect() |
public CMapEncoding(String cmap)
cmap
- CMap name.
public CMapEncoding(String cmap, String uniMap)
cmap
- CMap name.
uniMap
- CMap to convert Unicode value to CID.
public CMapEncoding(String cmap, byte[] cmapBytes)
public boolean isDirect()
public boolean hasUniMap()
public String getRegistry()
public String getOrdering()
public int getSupplement()
public String getUniMapName()
public String getCmapName()
public boolean isBuiltWith(String cmap)
CMapEncoding
was built with corresponding cmap name.
cmap
- a CMAP
public byte[] getCmapBytes(int cid)
public int fillCmapBytes(int cid, byte[] array, int offset)
public void fillCmapBytes(int cid, ByteBuffer buffer)
public int getCmapBytesLength(int cid)
public int getCidCode(int cmapCode)
public boolean containsCodeInCodeSpaceRange(int code, int length)
Copyright © 1998–2022 iText Group NV. All rights reserved.