| Modifier and Type | Field and Description |
|---|---|
| private final List | |
| private final PDDocument | |
| private final Map | |
| private final FSCacheEx | |
| private final SharedContext |
| Access | Constructor and Description |
|---|---|
| public | MainFontStore(SharedContext sharedContext, PDDocument doc, FSCacheEx<String, FSCacheValue> pdfMetricsCache)
|
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | addFont(TrueTypeFont trueTypeFont, String fontFamilyNameOverride, Integer fontWeightOverride, IdentValue fontStyleOverride, boolean subset)
Add a font using a FontBox TrueTypeFont. |
| 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 | addFontCollection(TrueTypeCollection collection, final String fontFamilyNameOverride, final Integer fontWeightOverride, final IdentValue fontStyleOverride, final boolean subset)
Add fonts using a FontBox TrueTypeCollection. |
| public void | addFontFaceFont(String fontFamilyName, IdentValue fontWeight, IdentValue fontStyle, String uri, boolean subset)
|
| public void | addFontLazy(FSSupplier<PDFont> font, String fontFamilyNameOverride, Integer fontWeightOverride, IdentValue fontStyleOverride, boolean subset)
Add a font with a lazy loaded PDFont |
| private void | addFontToFamily(boolean subset, FontFamily<PdfBoxFontResolver.
|
| public void | close()
Implements java. Closes this stream and releases any system resources associated with it. |
| private FontFamily | |
| public PdfBoxFontResolver. | resolveFont(SharedContext ctx, String fontFamily, float size, IdentValue weight, IdentValue style, IdentValue variant)
Implements abstract com.
|
| _collectionsToClose | back to summary |
|---|---|
| private final List<TrueTypeCollection> _collectionsToClose | |
| _doc | back to summary |
|---|---|
| private final PDDocument _doc | |
| _fontFamilies | back to summary |
|---|---|
| private final Map<String, FontFamily<PdfBoxFontResolver. | |
| _fontMetricsCache | back to summary |
|---|---|
| private final FSCacheEx<String, FSCacheValue> _fontMetricsCache | |
| _sharedContext | back to summary |
|---|---|
| private final SharedContext _sharedContext | |
| MainFontStore | back to summary |
|---|---|
| public MainFontStore(SharedContext sharedContext, PDDocument doc, FSCacheEx<String, FSCacheValue> pdfMetricsCache) | |
| 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. | |
| 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) | |
| addFontCollection | back to summary |
|---|---|
| public void addFontCollection(TrueTypeCollection collection, final String fontFamilyNameOverride, final Integer fontWeightOverride, final IdentValue fontStyleOverride, final boolean subset) throws IOException Add fonts using a FontBox TrueTypeCollection. | |
| addFontFaceFont | back to summary |
|---|---|
| public void addFontFaceFont(String fontFamilyName, IdentValue fontWeight, IdentValue fontStyle, String uri, boolean subset) | |
| 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 | |
| addFontToFamily | back to summary |
|---|---|
| private void addFontToFamily(boolean subset, FontFamily<PdfBoxFontResolver. | |
| 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
| |
| getFontFamily | back to summary |
|---|---|
| private FontFamily | |
| resolveFont | back to summary |
|---|---|
| public PdfBoxFontResolver. Implements abstract com.
| |