AcediaDocumentation

Text drawing

Properties for Drawing.new("Text").

Inherits the shared drawing properties.

Properties

MemberType / signatureMeaning
PositionVector2Text position.
TextstringDisplayed text; storage is capped at 255 bytes.
SizenumberFont size in pixels.
Fontnumber | stringDrawing.Fonts ID or supported font name.
CenterbooleanHorizontal centering.
OutlinebooleanWhether to draw an outline.
OutlineColorColor3Outline color.
TextBoundsVector2Readonly 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.

On this page