18 lines
416 B
Markdown
18 lines
416 B
Markdown
## setFontSize
|
|
Sets the font size, calculated by bigfonts. Default size is 1.
|
|
|
|
#### Parameters:
|
|
1. `number` The size (1, 2, 3, 4)
|
|
|
|
#### Returns:
|
|
1. `object` The object in use
|
|
|
|
#### Usage:
|
|
* Creates a default label, sets the text to "Basalt!" and its font size to 2.
|
|
```lua
|
|
local mainFrame = basalt.createFrame()
|
|
local aLabel = mainFrame:addLabel():setText("Basalt!"):setFontSize(2)
|
|
```
|
|
```xml
|
|
<label font="2" />
|
|
``` |