Paint: Text label
paint_textDraw text with a built-in 5x7 pixel font onto a named canvas; supports scaling, alignment, wrapping, and non-ASCII transliteration.
Instructions
Writes text with the built-in 5x7 pixel font (ASCII). scale multiplies the pixel size, align/valign anchor around (x,y), max_width wraps. Non-ASCII is transliterated (or errors) — no font files needed.
Target the canvas by name (created with paint_canvas) and optionally a layer index. Layers, filters and undo work the same for every drawing tool.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| text | Yes | ||
| align | No | left | |
| blend | No | Blend mode for this stroke | normal |
| color | No | #000000 | |
| layer | No | Target layer index; defaults to the active layer (see paint_canvas). | |
| scale | No | ||
| canvas | Yes | Canvas name. Letters, digits, space, dot, dash, plus; the .png/.paint suffix may be included or omitted. | |
| valign | No | top | |
| opacity | No | 0..1 strength of this stroke | |
| outline | No | Outline thickness in glyph pixels | |
| preview | No | Image reply: auto/thumb = downscaled picture back into the result, full = unpixelated, none = text only | |
| unicode | No | transliterate | |
| max_width | No | Wrap after N characters | |
| line_spacing | No | ||
| preview_size | No | Longest edge of the returned thumbnail | |
| outline_color | No | ||
| letter_spacing | No |