Class CFFParser.Format1Charset

  • All Implemented Interfaces:
    CFFCharset
    Enclosing class:
    CFFParser

    private static class CFFParser.Format1Charset
    extends EmbeddedCharset
    Inner class representing a Format1 charset.
    • Constructor Detail

      • Format1Charset

        private Format1Charset​(boolean isCIDFont)
    • Method Detail

      • addRangeMapping

        public void addRangeMapping​(CFFParser.RangeMapping rangeMapping)
        Add the given range mapping.
        Parameters:
        rangeMapping - the range mapping to be added.
      • 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