public class MainFontStore extends AbstractFontStore implements Closeable
AbstractFontStore.BuiltinFontStore, AbstractFontStore.EmptyFontStore| Constructor and Description |
|---|
MainFontStore(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)
Add fonts using a FontBox TrueTypeCollection.
|
void |
addFontFaceFont(String fontFamilyName,
IdentValue fontWeight,
IdentValue fontStyle,
String uri,
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() |
PdfBoxFontResolver.FontDescription |
resolveFont(SharedContext ctx,
String fontFamily,
float size,
IdentValue weight,
IdentValue style,
IdentValue variant) |
public MainFontStore(SharedContext sharedContext, org.apache.pdfbox.pdmodel.PDDocument doc, FSCacheEx<String,FSCacheValue> pdfMetricsCache)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic void addFontLazy(FSSupplier<org.apache.pdfbox.pdmodel.font.PDFont> font, String fontFamilyNameOverride, Integer fontWeightOverride, IdentValue fontStyleOverride, boolean subset)
public void addFontCollection(org.apache.fontbox.ttf.TrueTypeCollection collection,
String fontFamilyNameOverride,
Integer fontWeightOverride,
IdentValue fontStyleOverride,
boolean subset)
throws IOException
IOExceptionpublic void addFontFaceFont(String fontFamilyName, IdentValue fontWeight, IdentValue fontStyle, String uri, boolean subset)
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 PdfBoxFontResolver.FontDescription resolveFont(SharedContext ctx, String fontFamily, float size, IdentValue weight, IdentValue style, IdentValue variant)
resolveFont in class AbstractFontStoreCopyright © 2004–2025. All rights reserved.