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
| Signature | Description |
|---|---|
getFont(fontsDict: PdfDictionary, fontName: String, parser: PDFParser) → PdfFont | Returns the PdfFont for the given font name from the fonts dictionary. |
fromResources(resources: Resources, fontName: String, parser: PDFParser) → PdfFont | Convenience method: resolves a font from page Resources. |
clear() | Clears the font cache. |