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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a CMapgetCMap
(short platformID, short platformSpecificID) Get a CMap by platform and specific IDCMap[]
getCMaps()
Get all CMapsgetData()
int
Get the size of the table, in bytesshort
Get the number of tablesvoid
removeCMap
(short platformID, short platformSpecificID) Remove a CMapvoid
setData
(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
- aCMap
object.
-
getCMap
Get a CMap by platform and specific ID- Parameters:
platformID
- a short.platformSpecificID
- a short.- Returns:
- a
CMap
object.
-
getCMaps
Get all CMaps- Returns:
- an array of
CMap
objects.
-
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:
getLength
in classTrueTypeTable
- Returns:
- a
Integer
object.
-
getNumberSubtables
public short getNumberSubtables()Get the number of tables- Returns:
- a short.
-
toString
Put into a nice string
Print a pretty string
- Overrides:
toString
in classTrueTypeTable
-