Package org.apache.camel.component.pdf
Class Standard14Fonts
- java.lang.Object
-
- org.apache.camel.component.pdf.Standard14Fonts
-
public final class Standard14Fonts extends Object
The 14 standard fonts by name. Created here because there is no way to get a standard font by name inpdfbox
2.0- Author:
- Peter Palaga
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.apache.pdfbox.pdmodel.font.PDType1Font
getByName(String fontName)
Get one of the 14 standard fonts by base font name.
-
-
-
Method Detail
-
getByName
public static org.apache.pdfbox.pdmodel.font.PDType1Font getByName(String fontName)
Get one of the 14 standard fonts by base font name.- Parameters:
fontName
- the base font name, such as"Helvetica"
or"Helvetica-Bold"
- Returns:
- the
PDType1Font
or null, of thefontName
is not mapped to any font
-
-