⚠️ This site is under development, some artefacts may be missing or incomplete.
PIXEL UI
DrawText

DrawText

PIXEL.DrawText( string text, string font, number x, number y, color color, number xAlign = TEXT_ALIGN_LEFT )

Description

ℹ️

This method will resolve fonts registered with PIXEL UI. See PIXEL.RegisterFont or PIXEL.RegisterFontUnscaled for more information.

Draws multi-line text with the specified attributes.

Arguments

string text

The text to draw.

string font

The identifier of the font to use.

number x

The X coordinate to draw at.

number y

The Y coordinate to draw at.

color color

The color of the text.

number xAlign = TEXT_ALIGN_LEFT

The horizontal alignment.