public class FallbackFontStore extends Object implements Closeable
| Constructor and Description |
|---|
FallbackFontStore(SharedContext sharedContext,
org.apache.pdfbox.pdmodel.PDDocument doc,
FSCacheEx<String,FSCacheValue> pdfMetricsCache) |
| Modifier and Type | Method and Description |
|---|---|
void |
addFont(FSSupplier<InputStream> supplier,
String fontFamilyNameOverride,
Integer fontWeightOverride,
IdentValue fontStyleOverride,
boolean subset) |
void |
addFont(PDFontSupplier supplier,
String fontFamilyNameOverride,
Integer fontWeightOverride,
IdentValue fontStyleOverride,
boolean subset) |
void |
addFontCollection(org.apache.fontbox.ttf.TrueTypeCollection collection,
String fontFamilyNameOverride,
Integer fontWeightOverride,
IdentValue fontStyleOverride,
boolean subset) |
void |
addFontLazy(FSSupplier<org.apache.pdfbox.pdmodel.font.PDFont> font,
String fontFamilyNameOverride,
Integer fontWeightOverride,
IdentValue fontStyleOverride,
boolean subset)
Add a font with a lazy loaded PDFont
|
void |
close() |
List<PdfBoxFontResolver.FontDescription> |
resolveFonts(SharedContext ctx,
String[] families,
float size,
IdentValue weight,
IdentValue style,
IdentValue variant) |
public FallbackFontStore(SharedContext sharedContext, org.apache.pdfbox.pdmodel.PDDocument doc, FSCacheEx<String,FSCacheValue> pdfMetricsCache)
public List<PdfBoxFontResolver.FontDescription> resolveFonts(SharedContext ctx, String[] families, float size, IdentValue weight, IdentValue style, IdentValue variant)
public void addFont(FSSupplier<InputStream> supplier, String fontFamilyNameOverride, Integer fontWeightOverride, IdentValue fontStyleOverride, boolean subset)
public void addFont(PDFontSupplier supplier, String fontFamilyNameOverride, Integer fontWeightOverride, IdentValue fontStyleOverride, boolean subset)
public void addFontLazy(FSSupplier<org.apache.pdfbox.pdmodel.font.PDFont> font, String fontFamilyNameOverride, Integer fontWeightOverride, IdentValue fontStyleOverride, boolean subset)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic void addFontCollection(org.apache.fontbox.ttf.TrueTypeCollection collection,
String fontFamilyNameOverride,
Integer fontWeightOverride,
IdentValue fontStyleOverride,
boolean subset)
throws IOException
IOExceptionCopyright © 2004–2025. All rights reserved.