Skip to content

setFont()

Set the label's Font.

Parameters

Once an object label has been created, you can use the following function:

label.setFont(font)
Parameter Type Default Description
font Font required The new font, for example Font("Serif", Font.ITALIC, 16).