Class BasicFontProvider

java.lang.Object
com.itextpdf.layout.font.FontProvider
com.itextpdf.styledxmlparser.resolver.font.BasicFontProvider

public class BasicFontProvider extends FontProvider
A basic FontProvider that allows configuring in the constructor which fonts are loaded by default.
  • Constructor Details

    • BasicFontProvider

      public BasicFontProvider()
      Creates a new BasicFontProvider instance.
    • BasicFontProvider

      public BasicFontProvider (boolean registerStandardPdfFonts, boolean registerSystemFonts)
      Creates a new BasicFontProvider instance.
      Parameters:
      registerStandardPdfFonts - use true if you want to register the standard Type 1 fonts (can't be embedded)
      registerSystemFonts - use true if you want to register the system fonts (can require quite some resources)
    • BasicFontProvider

      public BasicFontProvider (boolean registerStandardPdfFonts, boolean registerSystemFonts, String defaultFontFamily)
      Creates a new BasicFontProvider instance.
      Parameters:
      registerStandardPdfFonts - use true if you want to register the standard Type 1 fonts (can't be embedded)
      registerSystemFonts - use true if you want to register the system fonts (can require quite some resources)
      defaultFontFamily - default font family
    • BasicFontProvider

      public BasicFontProvider (FontSet fontSet, String defaultFontFamily)
      Creates a new BasicFontProvider instance.
      Parameters:
      fontSet - predefined set of fonts, could be null.
      defaultFontFamily - default font family.