public final class FontCache extends Object
FontProvider.
PDFBox is free to purge this cache at will.| Constructor and Description |
|---|
FontCache() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFont(FontInfo info,
org.apache.fontbox.FontBoxFont font)
Adds the given FontBox font to the cache.
|
org.apache.fontbox.FontBoxFont |
getFont(FontInfo info)
Returns the FontBox font associated with the given FontInfo.
|
public void addFont(FontInfo info, org.apache.fontbox.FontBoxFont font)
info - the FontInfo to be used as keyfont - the font to be cachedpublic org.apache.fontbox.FontBoxFont getFont(FontInfo info)
info - the FontInfo of the cached fontCopyright © 2002–2022 The Apache Software Foundation. All rights reserved.