Usage
$drawText[;;;;;;;;;;;;;] Also callable as
$placeText $text $writeText Arguments
| Name | Type | Required | Description |
|---|---|---|---|
canvas | String | No | Name of the canvas |
type | Yes | The text type | |
text | String | Yes | The text to draw |
font | String | Yes | The text font following the `{size}px {font name}` format |
style | String | Yes | The style (color/gradient/pattern) |
x | Number | Yes | The text start X coordinate |
y | Number | Yes | The text start Y coordinate |
maxWidth | Number | No | Maximum font width |
multiline | Boolean | No | Indicates if new lines should be allowed |
wrap | No | Indicates how the text should be wrapped if it exceeds the maximum width | |
lineOffset | Number | No | The text lines offset |
newlineBeginning | No | The alignment of the text when a new line is encountered | |
allowEmojis | Boolean | No | Indicates if custom emojis should be drawn; Emojis get cached into preload://cache_emoji_{id} |
break | String | No | A custom end of a wrapped line; None by default |