Class CmapTable


  • public class CmapTable
    extends TrueTypeTable
    Represents the TTF "cmap" table
    • Field Detail

      • version

        private short version
        Holds value of property version.
    • Constructor Detail

      • CmapTable

        protected CmapTable()
        Creates a new instance of CmapTable
    • Method Detail

      • addCMap

        public void addCMap​(short platformID,
                            short platformSpecificID,
                            CMap cMap)
        Add a CMap
      • getCMap

        public CMap getCMap​(short platformID,
                            short platformSpecificID)
        Get a CMap by platform and specific ID
      • getCMaps

        public CMap[] getCMaps()
        Get all CMaps
      • removeCMap

        public void removeCMap​(short platformID,
                               short platformSpecificID)
        Remove a CMap
      • setData

        public void setData​(java.nio.ByteBuffer data)
        Description copied from class: TrueTypeTable
        Set the data in the table
        Overrides:
        setData in class TrueTypeTable
      • getLength

        public int getLength()
        Get the size of the table, in bytes
        Overrides:
        getLength in class TrueTypeTable
      • 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

        public java.lang.String toString()
        Print a pretty string
        Overrides:
        toString in class TrueTypeTable