Class CmapTable


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

      • read

        void read​(TrueTypeFont ttf,
                  TTFDataStream data)
           throws java.io.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:
        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.