Class CmapTable
java.lang.Object
org.loboevolution.pdfview.font.ttf.TrueTypeTable
org.loboevolution.pdfview.font.ttf.CmapTable
Represents the TTF "cmap" table
Author jkaplan
-
Field Summary
Fields inherited from class org.loboevolution.pdfview.font.ttf.TrueTypeTable
CMAP_TABLE, GLYF_TABLE, HEAD_TABLE, HHEA_TABLE, HMTX_TABLE, LOCA_TABLE, MAXP_TABLE, NAME_TABLE, POST_TABLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a CMapgetCMap(short platformID, short platformSpecificID) Get a CMap by platform and specific IDCMap[]getCMaps()Get all CMapsgetData()intGet the size of the table, in bytesshortGet the number of tablesvoidremoveCMap(short platformID, short platformSpecificID) Remove a CMapvoidsetData(ByteBuffer data) toString()Methods inherited from class org.loboevolution.pdfview.font.ttf.TrueTypeTable
createTable, createTable, stringToTag, tagToString
-
Constructor Details
-
CmapTable
protected CmapTable()Creates a new instance of CmapTable
-
-
Method Details
-
addCMap
Add a CMap- Parameters:
platformID- a short.platformSpecificID- a short.cMap- aCMapobject.
-
getCMap
Get a CMap by platform and specific ID- Parameters:
platformID- a short.platformSpecificID- a short.- Returns:
- a
CMapobject.
-
getCMaps
Get all CMaps- Returns:
- an array of
CMapobjects.
-
removeCMap
public void removeCMap(short platformID, short platformSpecificID) Remove a CMap- Parameters:
platformID- a short.platformSpecificID- a short.
-
getData
-
setData
-
getLength
public int getLength()Get the size of the table, in bytesGet the size of the table, in bytes
- Overrides:
getLengthin classTrueTypeTable- Returns:
- a
Integerobject.
-
getNumberSubtables
public short getNumberSubtables()Get the number of tables- Returns:
- a short.
-
toString
Put into a nice string
Print a pretty string
- Overrides:
toStringin classTrueTypeTable
-