iText 9.5.0 API
iText.IO.Font.FontCache Class Reference

Static Public Member Functions

static void  ClearSavedFonts ()
  Clears the cache by removing fonts that were added via SaveFont(FontProgram, System.String). More...
 
static FontProgram  GetFont (String fontName)
 
static FontProgram  SaveFont (FontProgram font, String fontName)
 

Member Function Documentation

◆ ClearSavedFonts()

static void iText.IO.Font.FontCache.ClearSavedFonts ( )
inlinestatic

Clears the cache by removing fonts that were added via SaveFont(FontProgram, System.String).

Clears the cache by removing fonts that were added via SaveFont(FontProgram, System.String).

Be aware that in multithreading environment this method call will affect the result of GetFont(System.String). This in its turn affects creation of fonts via factories when cached argument is set to true (which is by default).