public class CMap extends Object
| Constructor and Description |
|---|
CMap() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsCode(int character) |
List<org.verapdf.pd.font.cmap.CIDMappable> |
getCidMappings() |
int |
getCodeFromStream(InputStream stream)
Reads character code from input stream and returnes it's CID.
|
String |
getName() |
String |
getOrdering() |
String |
getRegistry() |
int |
getSupplement() |
String |
getUnicode(int code)
Returns Unicode sequence for given character code.
|
int |
getwMode() |
boolean |
isUsesNonPredefinedCMap() |
void |
setSupplement(int supplement) |
void |
setUsesNonPredefinedCMap(boolean usesNonPredefinedCMap)
Sets indicator for CMap to contain reference to a non-predefined CMap.
|
int |
toCID(int character)
Gets CID for given character.
|
void |
useCMap(CMap another)
Method adds all the data needed to this CMap from another CMap.
|
public int toCID(int character)
character - is code of character, for which CID is calculated.public boolean containsCode(int character)
public int getCodeFromStream(InputStream stream) throws IOException
stream - is stream from which character codes will be read.IOExceptionpublic void useCMap(CMap another)
another - is another CMap.public int getwMode()
public String getRegistry()
public String getOrdering()
public int getSupplement()
public void setSupplement(int supplement)
public boolean isUsesNonPredefinedCMap()
public void setUsesNonPredefinedCMap(boolean usesNonPredefinedCMap)
public String getUnicode(int code)
code - is code of character.public String getName()
public List<org.verapdf.pd.font.cmap.CIDMappable> getCidMappings()
Copyright © 2015–2017 The veraPDF Consortium. All rights reserved.