FontProvider.
PDFBox is free to purge this cache at will.
| Modifier and Type | Field and Description |
|---|---|
| private final Map |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addFont(FontInfo
the FontInfo to be used as key info, FontBoxFont the font to be cached font)Adds the given FontBox font to the cache. |
| public FontBoxFont |
| cache | back to summary |
|---|---|
| private final Map<FontInfo, SoftReference<FontBoxFont>> cache | |
| FontCache | back to summary |
|---|---|
| public FontCache() | |
| addFont | back to summary |
|---|---|
| public void addFont(FontInfo info, FontBoxFont font) Adds the given FontBox font to the cache.
| |
| getFont | back to summary |
|---|---|
| public FontBoxFont getFont(FontInfo info) Returns the FontBox font associated with the given FontInfo.
| |