Skip to content

setFont()

Set the area's Font.

Parameters

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

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