Class CFFFont

    • Constructor Detail

      • CFFFont

        public CFFFont()
    • Method Detail

      • getName

        public String getName()
        The name of the font.
        Specified by:
        getName in interface FontBoxFont
        Returns:
        the name of the font
      • addValueToTopDict

        public void addValueToTopDict​(String name,
                                      Object value)
        Adds the given key/value pair to the top dictionary.
        Parameters:
        name - the given key
        value - the given value
      • getTopDict

        public Map<String,Object> getTopDict()
        Returns the top dictionary.
        Returns:
        the dictionary
      • getCharset

        public CFFCharset getCharset()
        Returns the CFFCharset of the font.
        Returns:
        the charset
      • getData

        public byte[] getData()
        Returns the the original data.
        Returns:
        the dictionary
      • getNumCharStrings

        public int getNumCharStrings()
        Returns the number of charstrings in the font.
      • getGlobalSubrIndex

        public IndexData getGlobalSubrIndex()
        Returns the global subroutine index data.
        Returns:
        the dictionary
      • getType2CharString

        public abstract Type2CharString getType2CharString​(int cidOrGid)
                                                    throws IOException
        Returns the Type 2 charstring for the given CID.
        Parameters:
        cidOrGid - CID for CIFFont, or GID for Type 1 font
        Throws:
        IOException - if the charstring could not be read