Class CmapTable
java.lang.Object
org.openpdf.renderer.font.ttf.TrueTypeTable
org.openpdf.renderer.font.ttf.CmapTable
Represents the TTF "cmap" table
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final SortedMap<CmapTable.CmapSubtable, CMap> Holds the CMap subtables, sorted properlyprivate shortHolds value of property version.Fields inherited from class 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()Get the data in the tableintGet the size of the table, in bytesshortGet the number of tablesshortGetter for property version.voidremoveCMap(short platformID, short platformSpecificID) Remove a CMapvoidsetData(ByteBuffer data) Set the data in the tablevoidsetVersion(short version) Setter for property version.toString()Print a pretty stringMethods inherited from class TrueTypeTable
createTable, createTable, getTag, stringToTag, tagToString
-
Field Details
-
version
private short versionHolds value of property version. -
subtables
Holds the CMap subtables, sorted properly
-
-
Constructor Details
-
CmapTable
protected CmapTable()Creates a new instance of CmapTable
-
-
Method Details
-
addCMap
Add a CMap -
getCMap
Get a CMap by platform and specific ID -
getCMaps
Get all CMaps -
removeCMap
public void removeCMap(short platformID, short platformSpecificID) Remove a CMap -
setData
Description copied from class:TrueTypeTableSet the data in the table- Overrides:
setDatain classTrueTypeTable
-
getData
Description copied from class:TrueTypeTableGet the data in the table- Overrides:
getDatain classTrueTypeTable
-
getLength
public int getLength()Get the size of the table, in bytes- Overrides:
getLengthin classTrueTypeTable
-
getVersion
public short getVersion()Getter for property version.- Returns:
- Value of property version.
-
setVersion
public void setVersion(short version) Setter for property version.- Parameters:
version- New value of property version.
-
getNumberSubtables
public short getNumberSubtables()Get the number of tables -
toString
-