by, 03-07-2012 at 05:44 PM (509 Views)
The following five logical font families are defined in the Java SE.
These fonts are available on any Java platform and can be thought of as aliases for some underlying font that has the properties implied by its name.
- A Serif font is a font similar to Times New Roman, which is commonly used in print.
- A Sans Serif font is more typical for onscreen use.
These fonts can be customized for the locale of the user. In addition these fonts support the widest range of code points.
An application can create an instance of this font directly by specifying the following:
Java Code:Font font = new Font("Dialog", Font.PLAIN, 12);