FontSize (Property)

From Legacy Roblox Wiki
Revision as of 14:00, 22 January 2011 by >Camoy (fixed up; used enum template; added example;)
Jump to navigationJump to search
FontSize
Property Enum fontSize
Description Changes the font size of a GUI object.
Member of [[RBX.lua.TextBox, TextButton, TextLabel (Object)|TextBox, TextButton, TextLabel]]
The FontSize Enum controls the font size of text. It holds 10 values.
Enum Name Description
0 Size8 The text is set to size 8.
1 Size9 The text is set to size 9.
2 Size10 The text is set to size 10.
3 Size11 The text is set to size 11.
4 Size12 The text is set to size 12.
5 Size14 The text is set to size 14.
6 Size18 The text is set to size 18.
7 Size24 The text is set to size 24.
8 Size36 The text is set to size 36.
9 Size48 The text is set to size 48.


Example
The resulting label's text will have a font size of 24.
Instance.new('TextLabel', script.Parent).FontSize = Enum.FontSize.Size24