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