public class BasicFontProvider extends FontProvider
FontProvider
that allows configuring in the constructor which fonts are loaded by default.
defaultFontFamily, pdfFonts
Constructor and Description |
---|
BasicFontProvider()
Creates a new BasicFontProvider instance.
|
BasicFontProvider(boolean registerStandardPdfFonts, boolean registerSystemFonts)
Creates a new BasicFontProvider instance.
|
BasicFontProvider(boolean registerStandardPdfFonts, boolean registerSystemFonts, String defaultFontFamily)
Creates a new BasicFontProvider instance.
|
BasicFontProvider(FontSet fontSet, String defaultFontFamily)
Creates a new BasicFontProvider instance.
|
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
public BasicFontProvider()
BasicFontProvider
instance.
public BasicFontProvider(boolean registerStandardPdfFonts, boolean registerSystemFonts)
BasicFontProvider
instance.
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)
public BasicFontProvider(boolean registerStandardPdfFonts, boolean registerSystemFonts, String defaultFontFamily)
BasicFontProvider
instance.
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
public BasicFontProvider(FontSet fontSet, String defaultFontFamily)
BasicFontProvider
instance.
fontSet
- predefined set of fonts, could be null.
defaultFontFamily
- default font family.
Copyright © 1998–2022 iText Group NV. All rights reserved.