FontRepository

FontRepository

Overview

FontRepository is a class in Aspose.PDF FOSS for Java.

Caches and resolves PDF fonts from resource dictionaries.

This class provides 3 methods for working with FontRepository objects in Java programs. Available methods include: clear, fromResources, getFont. All public members are accessible to any Java application after installing the Aspose.PDF FOSS for Java package.

Methods

SignatureDescription
getFont(fontsDict: PdfDictionary, fontName: String, parser: PDFParser)PdfFontReturns the PdfFont for the given font name from the fonts dictionary.
fromResources(resources: Resources, fontName: String, parser: PDFParser)PdfFontConvenience method: resolves a font from page Resources.
clear()Clears the font cache.

See Also

 English