FontStyle||doc136496

September 20, 2022

Format

Button.FontStyle

Describe

This attribute determines theTextThe font style used in rendering can be selected from several predefined fonts.

Code Example

image.png

-- create layout window
local APIRootWindow = UI:CreateGUIWindow("API")

--Set the window to the root node of the UI
APIRootWindow.Parent = UI.Root

--Get the Button control for testing according to the name
local button = APIRootWindow.APIButton

--Set the font style of the button control
button.FontStyle = Enum.FontStyle.HarmonySansBold