Class CMAPTable


  • public class CMAPTable
    extends TTFTable
    A table in a true type font.
    Version:
    $Revision: 1.1 $
    Author:
    Ben Litchfield (ben@benlitchfield.com)
    • Field Detail

      • TAG

        public static final java.lang.String TAG
        A tag used to identify this table.
        See Also:
        Constant Field Values
      • PLATFORM_MISC

        public static final int PLATFORM_MISC
        A constant for the platform.
        See Also:
        Constant Field Values
      • PLATFORM_MACINTOSH

        public static final int PLATFORM_MACINTOSH
        A constant for the platform.
        See Also:
        Constant Field Values
      • PLATFORM_WINDOWS

        public static final int PLATFORM_WINDOWS
        A constant for the platform.
        See Also:
        Constant Field Values
      • ENCODING_SYMBOL

        public static final int ENCODING_SYMBOL
        An encoding constant.
        See Also:
        Constant Field Values
      • ENCODING_UNICODE

        public static final int ENCODING_UNICODE
        An encoding constant.
        See Also:
        Constant Field Values
      • ENCODING_SHIFT_JIS

        public static final int ENCODING_SHIFT_JIS
        An encoding constant.
        See Also:
        Constant Field Values
      • ENCODING_BIG5

        public static final int ENCODING_BIG5
        An encoding constant.
        See Also:
        Constant Field Values
      • ENCODING_PRC

        public static final int ENCODING_PRC
        An encoding constant.
        See Also:
        Constant Field Values
      • ENCODING_WANSUNG

        public static final int ENCODING_WANSUNG
        An encoding constant.
        See Also:
        Constant Field Values
      • ENCODING_JOHAB

        public static final int ENCODING_JOHAB
        An encoding constant.
        See Also:
        Constant Field Values
    • Constructor Detail

      • CMAPTable

        public CMAPTable()
    • Method Detail

      • initData

        public void initData​(TrueTypeFont ttf,
                             TTFDataStream data)
                      throws java.io.IOException
        This will read the required data from the stream.
        Overrides:
        initData 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.
      • setCmaps

        public void setCmaps​(CMAPEncodingEntry[] cmapsValue)
        Parameters:
        cmapsValue - The cmaps to set.