Font Demo Program
Here is an example program that shows how to change the font that will be used by the g.drawString method, using the Font class:
Simple program that uses different fonts to draw various strings
Sample Output produced by the Font Demo program
Refer to the Javadocs for the
Font class
by using this link