Class CmapTable

java.lang.Object
org.loboevolution.pdfview.font.ttf.TrueTypeTable
org.loboevolution.pdfview.font.ttf.CmapTable

public class CmapTable extends TrueTypeTable
Represents the TTF "cmap" table

Author jkaplan

  • Constructor Details

    • CmapTable

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

    • addCMap

      public void addCMap(short platformID, short platformSpecificID, CMap cMap)
      Add a CMap
      Parameters:
      platformID - a short.
      platformSpecificID - a short.
      cMap - a CMap object.
    • getCMap

      public CMap getCMap(short platformID, short platformSpecificID)
      Get a CMap by platform and specific ID
      Parameters:
      platformID - a short.
      platformSpecificID - a short.
      Returns:
      a CMap object.
    • getCMaps

      public CMap[] 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

      public ByteBuffer getData()
    • setData

      public void setData(ByteBuffer data)
    • getLength

      public int getLength()
      Get the size of the table, in bytes

      Get the size of the table, in bytes

      Overrides:
      getLength in class TrueTypeTable
      Returns:
      a Integer object.
    • getNumberSubtables

      public short getNumberSubtables()
      Get the number of tables
      Returns:
      a short.
    • toString

      public String toString()

      Put into a nice string

      Print a pretty string

      Overrides:
      toString in class TrueTypeTable