Class CmapTable

java.lang.Object
org.apache.fontbox.ttf.TTFTable
org.apache.fontbox.ttf.CmapTable

public class CmapTable extends TTFTable
The "cmap" table of a true type font.
  • Field Details

  • Constructor Details

  • Method Details

    • read

      void read(TrueTypeFont ttf, TTFDataStream data) throws IOException
      This will read the required data from the stream.
      Overrides:
      read in class TTFTable
      Parameters:
      ttf - The font that is being read.
      data - The stream to read the data from.
      Throws:
      IOException - If there is an error reading the data.
    • getCmaps

      public CmapSubtable[] getCmaps()
      Returns:
      Returns the cmaps.
    • setCmaps

      public void setCmaps(CmapSubtable[] cmapsValue)
      Parameters:
      cmapsValue - The cmaps to set.
    • getSubtable

      public CmapSubtable getSubtable(int platformId, int platformEncodingId)
      Returns the subtable, if any, for the given platform and encoding.