Class CFFParser.Format2Charset

java.lang.Object
org.apache.fontbox.cff.EmbeddedCharset
org.apache.fontbox.cff.CFFParser.Format2Charset
All Implemented Interfaces:
CFFCharset
Enclosing class:
CFFParser

private static class CFFParser.Format2Charset extends EmbeddedCharset
Inner class representing a Format2 charset.
  • Field Details

  • Constructor Details

    • Format2Charset

      private Format2Charset(boolean isCIDFont)
  • Method Details

    • addRangeMapping

      public void addRangeMapping(CFFParser.RangeMapping rangeMapping)
      Add the given range mapping.
      Parameters:
      rangeMapping - the range mapping to be added.
    • getCIDForGID

      public int getCIDForGID(int gid)
      Description copied from interface: CFFCharset
      Returns the CID for the given GID.
      Specified by:
      getCIDForGID in interface CFFCharset
      Overrides:
      getCIDForGID in class EmbeddedCharset
      Parameters:
      gid - GID
      Returns:
      CID
    • getGIDForCID

      public int getGIDForCID(int cid)
      Description copied from interface: CFFCharset
      Returns the GID for a given CID. Returns 0 if the CID is missing.
      Specified by:
      getGIDForCID in interface CFFCharset
      Overrides:
      getGIDForCID in class EmbeddedCharset
      Parameters:
      cid - CID
      Returns:
      GID