Class CFFType1Font

    • Constructor Detail

      • CFFType1Font

        public CFFType1Font()
    • Method Detail

      • getWidth

        public float getWidth​(String name)
                       throws IOException
        Description copied from interface: FontBoxFont
        Returns the advance width for the character with the given name.
        Specified by:
        getWidth in interface FontBoxFont
        Returns:
        glyph advance width
        Throws:
        IOException - if the path could not be read
      • hasGlyph

        public boolean hasGlyph​(String name)
        Description copied from interface: FontBoxFont
        Returns true if the font contains the given glyph.
        Specified by:
        hasGlyph in interface FontBoxFont
        Parameters:
        name - PostScript glyph name
      • getType1CharString

        public Type1CharString getType1CharString​(String name)
                                           throws IOException
        Returns the Type 1 charstring for the given PostScript glyph name.
        Parameters:
        name - PostScript glyph name
        Throws:
        IOException - if the charstring could not be read
      • nameToGID

        public int nameToGID​(String name)
        Returns the GID for the given PostScript glyph name.
        Parameters:
        name - a PostScript glyph name.
        Returns:
        GID
      • getPrivateDict

        public Map<String,​Object> getPrivateDict()
        Returns the private dictionary.
        Returns:
        the dictionary