public class CmapTable extends TrueTypeTable
CMAP_TABLE, GLYF_TABLE, HEAD_TABLE, HHEA_TABLE, HMTX_TABLE, LOCA_TABLE, MAXP_TABLE, NAME_TABLE, POST_TABLE| Modifier | Constructor and Description |
|---|---|
protected |
CmapTable()
Creates a new instance of CmapTable
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCMap(short platformID,
short platformSpecificID,
CMap cMap)
Add a CMap
|
CMap |
getCMap(short platformID,
short platformSpecificID)
Get a CMap by platform and specific ID
|
CMap[] |
getCMaps()
Get all CMaps
|
ByteBuffer |
getData()
Get the data in the table
|
int |
getLength()
Get the size of the table, in bytes
|
short |
getNumberSubtables()
Get the number of tables
|
short |
getVersion()
Getter for property version.
|
void |
removeCMap(short platformID,
short platformSpecificID)
Remove a CMap
|
void |
setData(ByteBuffer data)
Set the data in the table
|
void |
setVersion(short version)
Setter for property version.
|
String |
toString()
Print a pretty string
|
createTable, createTable, getTag, stringToTag, tagToStringpublic void addCMap(short platformID,
short platformSpecificID,
CMap cMap)
public CMap getCMap(short platformID, short platformSpecificID)
public CMap[] getCMaps()
public void removeCMap(short platformID,
short platformSpecificID)
public void setData(ByteBuffer data)
TrueTypeTablesetData in class TrueTypeTablepublic ByteBuffer getData()
TrueTypeTablegetData in class TrueTypeTablepublic int getLength()
getLength in class TrueTypeTablepublic short getVersion()
public void setVersion(short version)
version - New value of property version.public short getNumberSubtables()
public String toString()
toString in class TrueTypeTableCopyright © 2024. All rights reserved.