Class PDCIDFontType0Font

  • All Implemented Interfaces:
    COSObjectable

    public class PDCIDFontType0Font
    extends PDCIDFont
    This is implementation of the CIDFontType0 Font.
    Version:
    $Revision: 1.6 $
    Author:
    Ben Litchfield
    • Constructor Detail

      • PDCIDFontType0Font

        public PDCIDFontType0Font()
        Constructor.
      • PDCIDFontType0Font

        public PDCIDFontType0Font​(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
        Returns the AWT font that corresponds with this CIDFontType0 font. By default we try to look up a system font with the same name. If that fails and the font file is embedded in the PDF document, we try to generate the AWT font using the PDType1CFont class. Ideally the embedded font would be used always if available, but since the code doesn't work correctly for all fonts yet we opt to use the system font by default.
        Overrides:
        getawtFont in class PDSimpleFont
        Returns:
        AWT font, or null if not available
        Throws:
        java.io.IOException - if something went wrong.