Class BasicFontProvider


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

      • DEFAULT_FONT_FAMILY

        private static final java.lang.String DEFAULT_FONT_FAMILY
        See Also:
        Constant Field Values
    • Constructor Detail

      • 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,
                                 java.lang.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,
                                 java.lang.String defaultFontFamily)
        Creates a new BasicFontProvider instance.
        Parameters:
        fontSet - predefined set of fonts, could be null.
        defaultFontFamily - default font family.