FontStyle||doc136523

September 20, 2022

Format

Editbox.FontStyle

Describe

The font style of the input box text.

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

--According to the name to get the Editobox control for testing
local editbox = APIRootWindow.APIEditbox

--Set the text font style of the input box control
editbox.FontStyle = Enum.FontStyle.HarmonySansBold