Package com.itextpdf.io.font
Class FontCache
java.lang.Object
com.itextpdf.io.font.FontCache
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
Clears the cache by removing fonts that were added viasaveFont(FontProgram, String)
.(package private) static FontProgram
getFont
(FontCacheKey key) static FontProgram
(package private) static FontProgram
saveFont
(FontProgram font, FontCacheKey key) static FontProgram
saveFont
(FontProgram font, String fontName)
-
Field Details
-
fontCache
-
-
Constructor Details
-
FontCache
public FontCache()
-
-
Method Details
-
clearSavedFonts
public static void clearSavedFonts()Clears the cache by removing fonts that were added viasaveFont(FontProgram, String)
.Be aware that in multithreading environment this method call will affect the result of
getFont(String)
. This in its turn affects creation of fonts via factories whencached
argument is set to true (which is by default). -
getFont
-
getFont
-
saveFont
-
saveFont
-