PcoWSkbVqDnWTu_dm2ix
The Developer Hub is now deprecated and information on this page may no longer be accurate. To see our new and improved documentation, please click here. You can read more about the future of documentation here.
Collapse Sidebar

Font

TextBox

Font

The Font property selects one of several pre-defined Enum/Font|fonts with which the UI element will render its text. Some fonts have bold, italic and/or light variants (as there is no font-weight or font-style properties).

With the exception of the “Legacy” font, each font will render text with the line height equal to the TextBox/TextSize property. The “Code” font is the only monospace font. It has the unique property that each character has the exact same width and height ratio of 1:2. The width of each character is approximately half the TextBox/TextSize property.


Code Samples


Cycle Font

This code sample sets a parent TextLabel’s Font and Text properties to all the different fonts available.


Show All Fonts

This code sample renders a list of all the available fonts.