Class CMAPTable

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

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

    • TAG

      public static final String TAG
      A tag used to identify this table.
      See Also:
    • PLATFORM_MISC

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

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

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

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

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

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

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

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

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

      public static final int ENCODING_JOHAB
      An encoding constant.
      See Also:
  • Constructor Details

    • CMAPTable

      public CMAPTable()
  • Method Details

    • initData

      public void initData(TrueTypeFont ttf, TTFDataStream data) throws 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:
      IOException - If there is an error reading the data.
    • getCmaps

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

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