Text

Render single-line text that auto-scales to fit

draw 1 credit

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

NameTypeDescription
outputImageRendered text as image

Parameters

NameTypeDefaultDescription
params_widthnumber800Maximum width for text in pixels
params_texttextHello WorldText content to render
params_fonttextArialFont name
params_colourcolor#000000Text color
params_vertical_aligntextmiddleVertical alignment: top, middle, bottom
params_shadow_colourcolor#00000088Shadow color (transparent for no shadow)
params_shadow_offset_xnumber2Shadow horizontal offset in pixels
params_shadow_offset_ynumber2Shadow vertical offset in pixels
params_shadow_blurnumber4Shadow blur radius
params_stroke_colourcolor#000000FFStroke/outline color (transparent for no stroke)
params_stroke_widthnumber2Stroke width in pixels