Class FontCache
- java.lang.Object
-
- com.tom_roush.pdfbox.pdmodel.font.FontCache
-
public final class FontCache extends Object
An in-memory cache for system fonts. This allows PDFBox to manage caching for aFontProvider. PDFBox is free to purge this cache at will.
-
-
Constructor Summary
Constructors Constructor Description FontCache()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddFont(FontInfo info, FontBoxFont font)Adds the given FontBox font to the cache.FontBoxFontgetFont(FontInfo info)Returns the FontBox font associated with the given FontInfo.
-
-
-
Method Detail
-
addFont
public void addFont(FontInfo info, FontBoxFont font)
Adds the given FontBox font to the cache.
-
getFont
public FontBoxFont getFont(FontInfo info)
Returns the FontBox font associated with the given FontInfo.
-
-