II. GUI Basics
Chapter 9. Widgets Styles
Font Size
Method signature
setFontSize = "
[int]"
[int] valid values are between 6 to 72, although allows to set any integer.
Sets the font point size of the widget.
NOTE: If set this property is inherited by its children.
Fonts settings are inherited by widgets from their container parents. Therefore, if you set font for the
widget-containers, that font applies to the font of all widgets and nested containers, unless you override the settings.
This also means that if you override the font setting of a nested container, then each of its widgets inherits the new
font of that container.
Examples
In this example we will be using a button widget
.. setFontSize="15"
See also
'Font Style'
Back
Next