public class CMapEncoding extends Object implements Serializable
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) |
int |
getCmapCode(int cid)
Deprecated.
Will be removed in 7.2. Use
getCmapBytes(int) instead.
|
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
@Deprecated public int getCmapCode(int cid)
getCmapBytes(int)
instead.
cid
- a CID
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–2020 iText Group NV. All rights reserved.