Package org.apache.fontbox.util
Class FontManager
- java.lang.Object
 - 
- org.apache.fontbox.util.FontManager
 
 
- 
public class FontManager extends java.lang.ObjectThis 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
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TrueTypeFontfindTTFont(java.lang.String fontname)Search for a true type font for the given font name.static java.lang.StringfindTTFontname(java.lang.String fontname)Search for a font for the given font name. 
 - 
 
- 
- 
Method Detail
- 
findTTFontname
public static java.lang.String findTTFontname(java.lang.String fontname)
Search for a font for the given font name.- Parameters:
 fontname- the given font name- Returns:
 - the name of the mapped font
 
 
- 
findTTFont
public static TrueTypeFont findTTFont(java.lang.String fontname) throws java.io.IOException
Search for a true type font for the given font name.- Parameters:
 fontname- the given font name- Returns:
 - the mapped true type font
 - Throws:
 java.io.IOException- if something went wrong
 
 - 
 
 -