1 | Graphicsinstance.setFont(particularFont) will set the current Font in the instance Graphicsinstance of the Graphics class to the value particularFont of class Font. |
2 | The class Font has an important constructor used as in |
3 |
Font MyFont = new Font("TimesRoman", Font.PLAIN ,36);
|
4 |
FontMetrics fm = getFontMetrics(particularFont); // allows one to find out about the font
|