FontSize (Property): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Camoy
fixed up; used enum template; added example;
>Mattchewy
Fixing multiple objects
Line 3: Line 3:
|property = [[Enum]] ''fontSize''
|property = [[Enum]] ''fontSize''
|description = Changes the font size of a GUI object.
|description = Changes the font size of a GUI object.
|object = [[TextBox]], [[TextButton]], [[TextLabel]]
|objects = [[TextBox]], [[TextButton]], [[TextLabel]]
}}</onlyinclude>
}}</onlyinclude>



Revision as of 02:40, 23 January 2011

FontSize
Property Enum fontSize
Description Changes the font size of a GUI object.
Member of 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