Package org.apache.pdfbox.pdmodel.font
Class FontManager
- java.lang.Object
-
- org.apache.pdfbox.pdmodel.font.FontManager
-
public class FontManager extends java.lang.Object
This class is used as font manager.- Version:
- $Revision: 1.0 $
- Author:
- Andreas Lehmk??hler
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.awt.Font
getAwtFont(java.lang.String font)
Get the font for the given fontname.static java.awt.Font
getStandardFont()
Get the standard font from the environment, usually Arial or Times New Roman.
-
-
-
Method Detail
-
getStandardFont
public static java.awt.Font getStandardFont()
Get the standard font from the environment, usually Arial or Times New Roman.- Returns:
- The standard font
-
getAwtFont
public static java.awt.Font getAwtFont(java.lang.String font)
Get the font for the given fontname.- Parameters:
font
- The name of the font.- Returns:
- The font we are looking for or a similar font or null if nothing is found.
-
-