Class BuiltinFont

Direct Known Subclasses:
CIDFontType0

public class BuiltinFont extends Type1Font
This class represents the 14 built-in fonts. It reads these fonts from files in the "res" directory, as specified in BaseNames.properties.
  • Constructor Details

    • BuiltinFont

      public BuiltinFont(String baseFont, PDFObject fontObj) throws IOException
      Create a new Builtin object based on the name of a built-in font

      This must be the name of one of the 14 built-in fonts!

      Parameters:
      baseFont - the name of the font, from the PDF file
      fontObj - the object containing font information
      Throws:
      IOException - if any.
    • BuiltinFont

      public BuiltinFont(String baseFont, PDFObject fontObj, PDFFontDescriptor descriptor) throws IOException
      create a new BuiltingFont object based on a description of the font from the PDF file. Parse the description for key information and use that to generate an appropriate font.
      Parameters:
      baseFont - a String object.
      fontObj - a PDFObject object.
      descriptor - a PDFFontDescriptor object.
      Throws:
      IOException - if any.