Docs 1.6
Accidentally uploaded outdated 1.6 docs
This commit is contained in:
18
docs/docs1_6/objects/Label/setFontSize.md
Normal file
18
docs/docs1_6/objects/Label/setFontSize.md
Normal file
@@ -0,0 +1,18 @@
|
||||
## 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" />
|
||||
```
|
||||
Reference in New Issue
Block a user