Class CmapTable


  • public class CmapTable
    extends TTFTable
    The "cmap" table of a true type font.
    Author:
    Ben Litchfield
    • Method Detail

      • read

        public void read​(TrueTypeFont ttf,
                         org.apache.fontbox.ttf.TTFDataStream data)
                  throws java.io.IOException
        This will read the required data from the stream.
        Parameters:
        ttf - The font that is being read.
        data - The stream to read the data from.
        Throws:
        java.io.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.