Text
Render single-line text that auto-scales to fit
Text
Render single-line text that auto-scales to fit
Overview
The Text node renders a single line of text as an image. The text automatically scales to fit the specified width, making it easy to create dynamic text overlays. The height is calculated based on the rendered text.
Usage Tips
- Set width to control maximum text size
- Use “middle” vertical alignment for centered text in compositions
- Common fonts: Arial, Helvetica, Georgia, Times New Roman
- For multi-line text, use the Paragraph node instead
Common Pairings
- Merge - Overlay text on images
- Solid Canvas - Create text on colored backgrounds
- Rotate - Angle text for watermarks or badges
Gotchas
- Only single-line text - line breaks are ignored
- Font must be available on the server
- Very long text may become too small to read at the specified width
Technical Reference
Outputs
| Name | Type | Description |
|---|---|---|
output | Image | Rendered text as image |
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
params_width | number | 800 | Maximum width for text in pixels |
params_text | text | Hello World | Text content to render |
params_font | text | Arial | Font name |
params_colour | color | #000000 | Text color |
params_vertical_align | text | middle | Vertical alignment: top, middle, bottom |
params_shadow_colour | color | #00000088 | Shadow color (transparent for no shadow) |
params_shadow_offset_x | number | 2 | Shadow horizontal offset in pixels |
params_shadow_offset_y | number | 2 | Shadow vertical offset in pixels |
params_shadow_blur | number | 4 | Shadow blur radius |
params_stroke_colour | color | #000000FF | Stroke/outline color (transparent for no stroke) |
params_stroke_width | number | 2 | Stroke width in pixels |