Class FontCache


  • public final class FontCache
    extends Object
    A cache for system fonts. This allows PDFBox to manage caching for a FontProvider. PDFBox is free to purge this cache at will.
    • Constructor Detail

      • FontCache

        public FontCache()
    • 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.