Files
Basalt/docs/objects/Label/setFontSize.md
Robert Jelic 4d614372a1 Updated docs
There is still stuff to do
2022-08-28 18:18:26 +02:00

416 B

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.
local mainFrame = basalt.createFrame()
local aLabel = mainFrame:addLabel():setText("Basalt!"):setFontSize(2)
<label font="2" />