AutoTextSize||doc136475

September 20, 2022

Format

Text.AutoTextSize

Describe

Whether the text font size is adaptive to the control size is meaningful only when frameautosize is fixed.

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 Text control for testing according to the name
local text = APIRootWindow.APIText

--Set the text size of the text control to be adaptive
text.AutoTextSize = true