Package org.apache.fontbox.util
Class FontManager
java.lang.Object
org.apache.fontbox.util.FontManager
This class is used as manager for local fonts. It's based on the font manager provided by Apache FOP. see
org.apache.fop.fonts.FontManager.java
-
Method Summary
Modifier and TypeMethodDescriptionstatic TrueTypeFont
findTTFont
(String fontname) Search for a true type font for the given font name.static String
findTTFontname
(String fontname) Search for a font for the given font name.
-
Method Details
-
findTTFontname
Search for a font for the given font name.- Parameters:
fontname
- the given font name- Returns:
- the name of the mapped font
-
findTTFont
Search for a true type font for the given font name.- Parameters:
fontname
- the given font name- Returns:
- the mapped true type font
- Throws:
IOException
- if something went wrong
-