MinAutoTextSize||doc136489

September 20, 2022

Format

Text.MinAutoTextSize

Describe

The minimum limit font size for font size adaptation, which is meaningful only when autotextsize is true.

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 minimum adaptive font size for text controls
text.MinAutoTextSize = 5