Microsoft SDK for Java

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.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.