| Modifier and Type | Field and Description |
|---|---|
| private final List | |
| private final PDDocument | |
| private final FSCacheEx | |
| private final List |
| Access | Constructor and Description |
|---|---|
| public | FallbackFontStore(SharedContext sharedContext, PDDocument doc, FSCacheEx<String, FSCacheValue> pdfMetricsCache)
|
| Modifier and Type | Method and Description |
|---|---|
| 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)
|
| private void | |
| pack-priv void | addFont(TrueTypeFont trueTypeFont, String fontFamilyNameOverride, Integer fontWeightOverride, IdentValue fontStyleOverride, boolean subset)
Add a font using a FontBox TrueTypeFont. |
| public void | addFontCollection(TrueTypeCollection collection, String fontFamilyNameOverride, Integer fontWeightOverride, IdentValue fontStyleOverride, boolean subset)
|
| public void | addFontLazy(FSSupplier<PDFont> font, String fontFamilyNameOverride, Integer fontWeightOverride, IdentValue fontStyleOverride, boolean subset)
Add a font with a lazy loaded PDFont |
| public void | close()
Implements java. Closes this stream and releases any system resources associated with it. |
| private int | |
| private int | getFontPriority(PdfBoxFontResolver.
|
| public List | resolveFonts(SharedContext ctx, String[] families, float size, IdentValue weight, IdentValue style, IdentValue variant)
|
| _collectionsToClose | back to summary |
|---|---|
| private final List<TrueTypeCollection> _collectionsToClose | |
| _doc | back to summary |
|---|---|
| private final PDDocument _doc | |
| _fontMetricsCache | back to summary |
|---|---|
| private final FSCacheEx<String, FSCacheValue> _fontMetricsCache | |
| fonts | back to summary |
|---|---|
| private final List<PdfBoxFontResolver. | |
| FallbackFontStore | back to summary |
|---|---|
| public FallbackFontStore(SharedContext sharedContext, PDDocument doc, FSCacheEx<String, FSCacheValue> pdfMetricsCache) | |
| addFont | back to summary |
|---|---|
| public void addFont(FSSupplier<InputStream> supplier, String fontFamilyNameOverride, Integer fontWeightOverride, IdentValue fontStyleOverride, boolean subset) | |
| addFont | back to summary |
|---|---|
| public void addFont(PDFontSupplier supplier, String fontFamilyNameOverride, Integer fontWeightOverride, IdentValue fontStyleOverride, boolean subset) | |
| addFont | back to summary |
|---|---|
| private void addFont(boolean subset, PdfBoxFontResolver. | |
| addFont | back to summary |
|---|---|
| pack-priv void addFont(TrueTypeFont trueTypeFont, String fontFamilyNameOverride, Integer fontWeightOverride, IdentValue fontStyleOverride, boolean subset) throws IOException Add a font using a FontBox TrueTypeFont. | |
| addFontCollection | back to summary |
|---|---|
| public void addFontCollection(TrueTypeCollection collection, String fontFamilyNameOverride, Integer fontWeightOverride, IdentValue fontStyleOverride, boolean subset) throws IOException | |
| addFontLazy | back to summary |
|---|---|
| public void addFontLazy(FSSupplier<PDFont> font, String fontFamilyNameOverride, Integer fontWeightOverride, IdentValue fontStyleOverride, boolean subset) Add a font with a lazy loaded PDFont | |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements java. Doc from java. Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect. As noted in
| |
| getFamilyPriority | back to summary |
|---|---|
| private int getFamilyPriority(String fontFamily, List<String> desiredFamilies) | |
| getFontPriority | back to summary |
|---|---|
| private int getFontPriority(PdfBoxFontResolver. | |
| resolveFonts | back to summary |
|---|---|
| public List | |