public class BasicFontProvider extends FontProvider
FontProvider that allows configuring in the constructor which fonts are loaded by default.| Modifier and Type | Field and Description |
|---|---|
protected List<String> |
shippedFontNames
The file names of the shipped fonts.
|
protected String |
shippedFontResourcePath
The path to the shipped fonts.
|
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 registerShippedFonts,
boolean registerSystemFonts)
Creates a new
BasicFontProvider instance. |
BasicFontProvider(boolean registerStandardPdfFonts,
boolean registerShippedFonts,
boolean registerSystemFonts,
String defaultFontFamily)
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. |
| Modifier and Type | Method and Description |
|---|---|
protected Range |
addCalligraphFonts()
This method loads a list of noto fonts from pdfCalligraph (if it is present in the classpath) into FontProvider.
|
protected void |
addShippedFonts(Range rangeToLoad)
Adds fonts shipped with the font provider.
|
protected void |
initShippedFontsResourcePath()
Initialize path to shipped fonts and list of font files.
|
addDirectory, addFont, addFont, addFont, addFont, addFont, addFont, addFont, addFont, addFont, addStandardPdfFonts, addSystemFonts, createFontSelector, createFontSelectorStrategy, getDefaultCacheFlag, getDefaultEmbeddingFlag, getDefaultEncoding, getDefaultFontFamily, getFontSelector, getFontSelector, getFontSet, getPdfFont, getPdfFont, reset, setFontSelectorStrategyFactoryprotected String shippedFontResourcePath
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 registerShippedFonts,
boolean registerSystemFonts)
BasicFontProvider instance.registerStandardPdfFonts - use true if you want to register the standard Type 1 fonts (can't be embedded)registerShippedFonts - use true if you want to register the shipped fonts (can 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 familypublic BasicFontProvider(boolean registerStandardPdfFonts,
boolean registerShippedFonts,
boolean registerSystemFonts,
String defaultFontFamily)
BasicFontProvider instance.registerStandardPdfFonts - use true if you want to register the standard Type 1 fonts (can't be embedded)registerShippedFonts - use true if you want to register the shipped fonts (can be embedded)registerSystemFonts - use true if you want to register the system fonts (can require quite some resources)defaultFontFamily - default font familypublic BasicFontProvider(FontSet fontSet, String defaultFontFamily)
BasicFontProvider instance.fontSet - predefined set of fonts, could be null.defaultFontFamily - default font family.protected Range addCalligraphFonts()
Range that excludes the loaded from pdfCalligraph fonts,
i.e. the unicode range that is to be rendered with any other font contained in this FontProviderprotected void addShippedFonts(Range rangeToLoad)
BasicFontProvider this method does nothing but can be overridden to load additional fonts.rangeToLoad - a unicode Range to load charactersprotected void initShippedFontsResourcePath()
Copyright © 1998–2025 Apryse Group NV. All rights reserved.