Defines the Font Component.
Font | Defines the Font Component. |
Functions | |
new | |
New Font | A Component defining certain text manipulations. |
Variables | |
size | The Font’s initial size. |
style | The Font’s initial FontStyle. |
decoration | The Font’s initial FontDecoration. |
stylesheet | The Font Component’s stylesheet. |
Functions | |
updateStylesheet | Updates the Font Component’s stylesheet. |
Properties | |
Font Properties |
local function new ( _, init_size, init_style, init_decoration )
init_size | The Font Component’s initial size. Valid sizes are defined by QT, but I can only seem to get numbers to work. |
init_style | The Font Component’s initial style. Optional. Must be a FontStyle or FontWeight Component. |
init_decoration | The Font Component’s initial FontDecoration. Optional. |
A new Font Component.
A Component defining certain text manipulations.
Variables | |
size | The Font’s initial size. |
style | The Font’s initial FontStyle. |
decoration | The Font’s initial FontDecoration. |
stylesheet | The Font Component’s stylesheet. |
Functions | |
updateStylesheet | Updates the Font Component’s stylesheet. |
Properties | |
Font Properties |
local style
The Font’s initial FontStyle.
local decoration
The Font’s initial FontDecoration.
local stylesheet
The Font Component’s stylesheet. Generated via updateStylesheet.
local function updateStylesheet ()
Updates the Font Component’s stylesheet.
Size | Gets and sets the Font’s size. Should probably be a number. |
Style | Gets and sets the Font’s FontStyle. Removes the Font’s FontWeight if set. |
Weight | Gets and sets the Font’s FontWeight. Removes the Font’s FontStyle if set. |
Decoration | Gets and sets the Font’s FontDecoration. |
Stylesheet | Updates and returns the Font Component’s stylesheet. |
local function new ( _, init_size, init_style, init_decoration )
The Font’s initial size.
local size
The Font’s initial FontStyle.
local style
The Font’s initial FontDecoration.
local decoration
The Font Component’s stylesheet.
local stylesheet
Updates the Font Component’s stylesheet.
local function updateStylesheet ()