Font.getFont

Font.getFont

Class Overview | Class Members | This Package | All Packages

Syntax
public static Font getFont( String nm, Font font )
Parameters
nm
the property name
font
a default font to return if property nm is not defined
Returns
the Font value of the property.
Description
Gets the specified font from the system properties list. The first argument is treated as the name of a system property to be obtained as if by the method System.getProperty. The string value of this property is then interpreted as a font.

The property value should be one of the following forms:

where style is one of the three strings "BOLD", "BOLDITALIC", or "ITALIC", and point size is a decimal representation of the point size.

The default style is PLAIN. The default point size is 12.

If the specified property is not found, the font argument is returned instead.