Image & Canvas
canvasDrawText
$canvasDrawText[]
Text outside the canvas boundaries is clipped and will not appear in the output. The font is selected automatically based on font size: arial14 for sizes under 20px, arial24 for 20–39px, and arial48 for 40px and above. Multi-line text is not supported — each call draws a single line. Use template variable syntax ((varName)) to embed dynamic values in the text string.
Syntax
bdfd
$canvasDrawText[text;x;y;fontSize;color;textAlign?;maxWidth?;container?]
Examples
Draw Styled Text on Canvas
$canvasCreate[textCanvas;500;120;#202225]
$canvasDrawText[textCanvas;Hello $username!;30;65;26;#5865F2]
$attachImage[textCanvas]
$sendMessage[Rendered dynamic user text on canvas.]