Class PDCIDFontType2Font

    • Constructor Detail

      • PDCIDFontType2Font

        public PDCIDFontType2Font()
        Constructor.
      • PDCIDFontType2Font

        public PDCIDFontType2Font​(COSDictionary fontDictionary)
        Constructor.
        Parameters:
        fontDictionary - The font dictionary according to the PDF specification.
    • Method Detail

      • getawtFont

        public java.awt.Font getawtFont()
                                 throws java.io.IOException
        Looks up, creates, returns the AWT Font.
        Overrides:
        getawtFont in class PDSimpleFont
        Returns:
        returns the awt font to bes used for rendering
        Throws:
        java.io.IOException - if something went wrong.
      • hasCIDToGIDMap

        public boolean hasCIDToGIDMap()
        Indicates if this font has a CIDToGIDMap.
        Returns:
        returns true if the font has a CIDToGIDMap.
      • mapCIDToGID

        public int mapCIDToGID​(int cid)
        Maps the given CID to the correspondent GID.
        Parameters:
        cid - the given CID
        Returns:
        the mapped GID, or -1 if something went wrong.