UITextSizeConstraint¶
Ensures that the size of text rendered by certain GuiObject classes lies within the range described by MaxTextSize and MinTextSize.
Not implemented yet
Text-size clamps are not implemented.
Workaround: Clamp TextSize manually.
Description¶
A UITextSizeConstraint ensures that the size of text rendered by certain GuiObject classes (TextLabel, TextButton, or TextBox) lies within the range described by MaxTextSize and MinTextSize. It is meant to be used alongside TextLabel.TextScaled, which automatically scales text to fill its containing object. Like other UI constraints, it is applied when parented to the object to be constrained.
It's recommended that no values lower than 9 be used for MinTextSize property, otherwise text may not be readable to most users.
Inheritance¶
Object → Instance → UIBase → UIComponent → UIConstraint → UITextSizeConstraint
Properties¶
| Member | Signature | Summary |
|---|---|---|
MaxTextSize |
MaxTextSize: int |
The largest size in pixels the font is allowed to be. |
MinTextSize |
MinTextSize: int |
The smallest size in pixels the font is allowed to be. |
Roblox reference: UITextSizeConstraint
Generated from Nova's API dump and Roblox creator-docs. Nova-only members come from the engine's reflection metadata.