Class FontCache

java.lang.Object
org.apache.pdfbox.pdmodel.font.FontCache

public final class FontCache extends Object
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.
Author:
John Hewson
  • Constructor Details

    • FontCache

      public FontCache()
  • Method Details

    • addFont

      public void addFont(FontInfo info, org.apache.fontbox.FontBoxFont font)
      Adds the given FontBox font to the cache.
    • getFont

      public org.apache.fontbox.FontBoxFont getFont(FontInfo info)
      Returns the FontBox font associated with the given FontInfo.