Use TrueType fontTag(s): AWT
[JDK1.4]
The names of the most common fonts supported by Java are TimesRoman, Courier, and Helvetica. To add fonts, simply edit the properties.font file located in the lib of your JDK installation.
On a Windows system, to check what are the fonts available, go in the Font applet in the Parameters folder. Choose a font and doubleclick on it. Check the name of the font. For example, on my system, I have a font called Kaufmann, the real name is "Kaufmann BT". To be able to use this font, I add the following line in the properties.font file in the section called # for backword compatibility.
Kaufmann.0=Kaufmann BT, ANSI_CHARSET
setFont(new Font("Kaufmann", Font.BOLD, 20));
[JDK1.5]
@todo
mail_outline
Send comment, question or suggestion to howto@rgagnon.com
Send comment, question or suggestion to howto@rgagnon.com