FontMetrics.FontMetrics

Overview | Methods | Fields | This Package | All Packages

FontMetrics.FontMetrics

Creates a new FontMetrics object.

Syntax

public FontMetrics()

public FontMetrics( Font font, Graphics g )

Parameters

font

The font for which to get the FontMetrics.

g

The Graphics object to which to render the font.

Remarks

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.