Class BasicFontProvider
java.lang.Object
com.itextpdf.layout.font.FontProvider
com.itextpdf.styledxmlparser.resolver.font.BasicFontProvider
A basic
FontProvider
that allows configuring in the constructor which fonts are loaded by default.
-
Field Summary
Fields inherited from class com.itextpdf.layout.font.FontProvider
defaultFontFamily, pdfFonts
-
Constructor Summary
ConstructorDescriptionCreates a newBasicFontProvider
instance.BasicFontProvider
(boolean registerStandardPdfFonts, boolean registerSystemFonts) Creates a newBasicFontProvider
instance.BasicFontProvider
(boolean registerStandardPdfFonts, boolean registerSystemFonts, String defaultFontFamily) Creates a newBasicFontProvider
instance.BasicFontProvider
(FontSet fontSet, String defaultFontFamily) Creates a newBasicFontProvider
instance. -
Method Summary
Methods inherited from class com.itextpdf.layout.font.FontProvider
addDirectory, addFont, addFont, addFont, addFont, addFont, addFont, addFont, addFont, addFont, addStandardPdfFonts, addSystemFonts, createFontSelector, getDefaultCacheFlag, getDefaultEmbeddingFlag, getDefaultEncoding, getDefaultFontFamily, getFontSelector, getFontSelector, getFontSet, getPdfFont, getPdfFont, getStrategy, getStrategy, getStrategy, reset
-
Constructor Details
-
BasicFontProvider
public BasicFontProvider()Creates a newBasicFontProvider
instance. -
BasicFontProvider
public BasicFontProvider(boolean registerStandardPdfFonts, boolean registerSystemFonts) Creates a newBasicFontProvider
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 newBasicFontProvider
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
Creates a newBasicFontProvider
instance.- Parameters:
-
fontSet
- predefined set of fonts, could be null. -
defaultFontFamily
- default font family.
-