Class BuiltinFont


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
    • 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.
      Throws:
      IOException