public class FontManager extends Object
Constructor and Description |
---|
FontManager() |
Modifier and Type | Method and Description |
---|---|
static Font |
getFont(String familyName,
int style,
int size)
Get a system font that matches the font family name, style and size.
|
static Font |
getPriorityFont(String[] familyFontNamnes,
int style,
int size)
Get a system font that matches one the font family names with the style and size.
|
public static Font getPriorityFont(String[] familyFontNamnes, int style, int size)
familyFontNamnes
- user defined list of family font names or null to use default liststyle
- Font.PLAIN, Font.BOLD, Font.Italicsize
- font sizepublic static Font getFont(String familyName, int style, int size)
familyName
- font family name e.g. "Arial", "Trebuchet MS" ...style
- Font.PLAIN, Font.BOLD, Font.Italicsize
- font sizeProcessing library G4P by Peter Lager. (c) 2015