Font.getWeight

Overview | Methods | Fields | This Package | All Packages

Font.getWeight

Retrieves the font's weight.

Syntax

public final int getWeight()

Return Value

Returns one of the enumeration values defined in the FontWeight class.

Remarks

You specify a font's weight when you construct the Font object. By default, this value is FontWeight.NORMAL.