FontSize (Property): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Mattchewy
Fixing multiple objects
>JulienDethurens
No edit summary
 
(9 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<onlyinclude>{{Property
<onlyinclude>{{Property
|name = FontSize
|name = FontSize
|property = [[Enum]] ''fontSize''
|type = [[FontSize (Enum)|FontSize]]
|description = Changes the font size of a GUI object.
|description = Changes the font size of a GUI object.
|objects = [[TextBox]], [[TextButton]], [[TextLabel]]
|objects = [[TextBox]], [[TextButton]], [[TextLabel]]
Line 8: Line 8:
{{clear floats}}
{{clear floats}}


{{Enum|The FontSize [[Enum]] controls the font size of text.  It holds 10 values.|
{{Example|The resulting label's text will have a font size of 24.{{code|=
{{Enum/row|0|Size8|The text is set to size 8.}}
{{Enum/row|1|Size9|The text is set to size 9.}}
{{Enum/row|2|Size10|The text is set to size 10.}}
{{Enum/row|3|Size11|The text is set to size 11.}}
{{Enum/row|4|Size12|The text is set to size 12.}}
{{Enum/row|5|Size14|The text is set to size 14.}}
{{Enum/row|6|Size18|The text is set to size 18.}}
{{Enum/row|7|Size24|The text is set to size 24.}}
{{Enum/row|8|Size36|The text is set to size 36.}}
{{Enum/row|9|Size48|The text is set to size 48.}}
}}
 
<br />
 
{{Example|The resulting label's text will have a font size of 24.<pre>
Instance.new('TextLabel', script.Parent).FontSize = Enum.FontSize.Size24
Instance.new('TextLabel', script.Parent).FontSize = Enum.FontSize.Size24
</pre>}}
}}}}


[[Category:Properties]]
[[Category:Properties]]

Latest revision as of 01:42, 24 March 2012

FontSize
Type FontSize
Description Changes the font size of a GUI object.
Member of TextBox, TextButton, TextLabel


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