Retrieves the font's weight.
public final int getWeight()
Returns one of the enumeration values defined in the FontWeight class.
You specify a font's weight when you construct the Font object. By default, this value is FontWeight.NORMAL.