Text drawing
Properties for Drawing.new("Text").
Inherits the shared drawing properties.
Properties
| Member | Type / signature | Meaning |
|---|---|---|
Position | Vector2 | Text position. |
Text | string | Displayed text; storage is capped at 255 bytes. |
Size | number | Font size in pixels. |
Font | number | string | Drawing.Fonts ID or supported font name. |
Center | boolean | Horizontal centering. |
Outline | boolean | Whether to draw an outline. |
OutlineColor | Color3 | Outline color. |
TextBounds | Vector2 | Readonly measured text dimensions. |
Example
local object = Drawing.new("Text")
object.Position = Vector2.new(20, 20)
object.Text = "Example"
object.Font = Drawing.Fonts.UI
object.Size = 16
object.Color = Color3.new(1, 1, 1)
object.Visible = true
object:Remove()Property writes require the matching types. TextBounds and __OBJECT_EXISTS are readonly.
