Package org.verapdf.pd.font.truetype
Class TrueTypeCmapSubtable
- java.lang.Object
-
- org.verapdf.pd.font.truetype.TrueTypeCmapSubtable
-
public class TrueTypeCmapSubtable extends Object
Instance of this class represents CMap subtable of Type 1 font.- Author:
- Sergey Shemyakov
-
-
Constructor Summary
Constructors Constructor Description TrueTypeCmapSubtable(int platformID, int encodingID, long offset)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontainsCID(int cid)Checks if particular character ID is present in this CMap.booleancontainsGlyph(int glyphCode)Checks if particular glyph ID is present in this CMap.intgetGlyph(int code)Gets GID for specified CID.longgetOffset()booleanisStandardEncodingCMap()voidput(Integer key, Integer value)Method adds mapping CID -> GID to CMap.
-
-
-
Method Detail
-
getOffset
public long getOffset()
- Returns:
- byte offset at which CMap data can be found.
-
put
public void put(Integer key, Integer value)
Method adds mapping CID -> GID to CMap.- Parameters:
key- is CID.value- is GID.
-
getGlyph
public int getGlyph(int code)
Gets GID for specified CID.- Parameters:
code- is character code.- Returns:
- glyph ID for this character code.
-
containsGlyph
public boolean containsGlyph(int glyphCode)
Checks if particular glyph ID is present in this CMap.- Parameters:
glyphCode- is glyph ID.- Returns:
- true if glyph is present in this CMap.
-
containsCID
public boolean containsCID(int cid)
Checks if particular character ID is present in this CMap.- Parameters:
cid- is character ID.- Returns:
- true if this CID is present.
-
isStandardEncodingCMap
public boolean isStandardEncodingCMap()
-
-