setFont()
Set the area's Font.
Parameters
Once an object area has been created, you can use the following functions:
area.setFont(font)
area.setFont(font, resize)
| Parameter | Type | Default | Description |
|---|---|---|---|
font |
Font |
required | The new font, for example Font("Serif", Font.ITALIC, 16). |
resize |
bool |
True |
True to refit the area to its columns and rows of text in the new font, or False to keep its current size. |