Files
Basalt/docs/docs1_6/objects/Label/setFontSize.md
Robert Jelic d4c72514ef Docs 1.6
Accidentally uploaded outdated 1.6 docs
2023-05-01 16:28:46 +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" />