public class DefaultFontProvider
extends com.itextpdf.styledxmlparser.resolver.font.BasicFontProvider
BasicFontProvider
for pdfHTML, that, as opposed to the font provider in iText 7's styled-xml-parser, also includes a series of fonts that are shipped with the add-on.
Constructor and Description |
---|
DefaultFontProvider()
Creates a new DefaultFontProvider instance.
|
DefaultFontProvider(boolean registerStandardPdfFonts, boolean registerShippedFreeFonts, boolean registerSystemFonts)
Creates a new DefaultFontProvider instance.
|
DefaultFontProvider(boolean registerStandardPdfFonts, boolean registerShippedFreeFonts, boolean registerSystemFonts, String defaultFontFamily)
Creates a new DefaultFontProvider instance.
|
Modifier and Type | Method and Description |
---|---|
protected com.itextpdf.layout.font.Range |
addCalligraphFonts()
This method loads a list of noto fonts from pdfCalligraph (if present in the classpath!) into 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
public DefaultFontProvider()
DefaultFontProvider
instance.
public DefaultFontProvider(boolean registerStandardPdfFonts, boolean registerShippedFreeFonts, boolean registerSystemFonts)
DefaultFontProvider
instance.
registerStandardPdfFonts
- use true if you want to register the standard Type 1 fonts (can't be embedded)
registerShippedFreeFonts
- 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 DefaultFontProvider(boolean registerStandardPdfFonts, boolean registerShippedFreeFonts, boolean registerSystemFonts, String defaultFontFamily)
DefaultFontProvider
instance.
registerStandardPdfFonts
- use true if you want to register the standard Type 1 fonts (can't be embedded)
registerShippedFreeFonts
- 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 family
protected com.itextpdf.layout.font.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 FontProvider
Copyright © 1998–2019 iText Group NV. All rights reserved.