Package com.independentsoft.office.pdf
Class PdfFontManager
java.lang.Object
com.independentsoft.office.pdf.PdfFontManager
Resolves document font families to TrueType font files and manages the fonts
embedded in a PDF file. Fonts registered on
PdfSaveOptions take
precedence; otherwise the configured font directories and the operating
system font directories are searched.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets all fonts embedded so far, in resource name order (EF1, EF2, ...).Resolves a font family and style to an embedded font, loading and registering it on first use.
-
Constructor Details
-
PdfFontManager
-
-
Method Details
-
resolve
Resolves a font family and style to an embedded font, loading and registering it on first use. Returns null when no suitable TrueType font can be found, in which case the caller should fall back to the standard base-14 fonts.- Parameters:
family- the font family name from the documentbold- true for the bold variantitalic- true for the italic variant- Returns:
- the embedded font or null
-
getEmbeddedFonts
Gets all fonts embedded so far, in resource name order (EF1, EF2, ...).- Returns:
- the embedded fonts
-