Package org.apache.pdfbox.pdmodel.font
Class FontCache
java.lang.Object
org.apache.pdfbox.pdmodel.font.FontCache
An in-memory cache for system fonts. This allows PDFBox to manage caching for a
FontProvider
.
PDFBox is free to purge this cache at will.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addFont
(FontInfo info, FontBoxFont font) Adds the given FontBox font to the cache.Returns the FontBox font associated with the given FontInfo.
-
Field Details
-
cache
-
-
Constructor Details
-
FontCache
public FontCache()
-
-
Method Details
-
addFont
Adds the given FontBox font to the cache. -
getFont
Returns the FontBox font associated with the given FontInfo.
-