Creates a new FontMetrics object.
public FontMetrics()
public FontMetrics( Font font, Graphics g )
font
The font for which to get the FontMetrics.
g
The Graphics object to which to render the font.
A FontMetrics object describes the attributes of a font. Once you have initialized a FontMetrics object, you can pass that object as a parameter to the Font object constructor.