public class TrueTypeCmapSubtable extends Object
| Constructor and Description |
|---|
TrueTypeCmapSubtable(int platformID,
int encodingID,
long offset)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsCID(int cid)
Checks if particular character ID is present in this CMap.
|
boolean |
containsGlyph(int glyphCode)
Checks if particular glyph ID is present in this CMap.
|
int |
getGlyph(int code)
Gets GID for specified CID.
|
long |
getOffset() |
boolean |
isStandardEncodingCMap() |
void |
put(Integer key,
Integer value)
Method adds mapping CID -> GID to CMap.
|
public TrueTypeCmapSubtable(int platformID,
int encodingID,
long offset)
platformID - is platform ID of CMap.encodingID - is encoding ID of CMap.offset - is byte offset at which CMap data can be found.public long getOffset()
public void put(Integer key, Integer value)
key - is CID.value - is GID.public int getGlyph(int code)
code - is character code.public boolean containsGlyph(int glyphCode)
glyphCode - is glyph ID.public boolean containsCID(int cid)
cid - is character ID.public boolean isStandardEncodingCMap()
Copyright © 2015–2018 The veraPDF Consortium. All rights reserved.