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

361 B

getFontSize

Returns the current font size

Returns:

  1. number font size

Usage:

  • Creates a default label, sets the text to "Basalt!" and its font size to 2. Also prints the current fontsize.
local mainFrame = basalt.createFrame()
local aLabel = mainFrame:addLabel():setText("Basalt!"):setFontSize(2)
basalt.debug(aLabel:getFontSize())