Draw Text — Text Tool
Draw Text renders words into a rectangle you place on the image, in a font you upload (connect a Font Loader) or one of DejaVu, Liberation, Noto, Noto Sans CJK (Korean, Japanese, Chinese) or Ubuntu. Horizontal or vertical writing, 8 to 200px, any color, with optional outline, drop shadow and background panel. Titles, logos, watermarks, labels. CPU.
Details
- CategoryText
- Year-1
- License
Inputs & Outputs
- ImageInputimage
Source image to draw text on
- FontInputfile:fontoptional
Optional uploaded font (.ttf/.otf) to render the text with; overrides Font family when connected.
- ImageOutputimage
Image with text rendered at the specified area
Parameters
- textstringdefault Hello, World!
Text content
Text to render. Supports newlines ( ) for multi-line content — line spacing is set by the line_spacing parameter. Lines wrap at spaces; text without spaces (Japanese, Chinese) wraps between characters. Unicode is supported as long as the chosen font covers the glyphs; if characters render as boxes, switch to Noto Sans CJK for Korean/Japanese/Chinese or connect a Font Loader with a font that covers them.
- font_familystringdefault dejavu sansoptions: dejavu sans, dejavu serif, dejavu sans mono, liberation sans, +4 more
Font family
Font face to render with when no font is connected to the Font port. DejaVu Sans/Serif/Sans Mono, Liberation Sans/Serif, Noto Sans and Ubuntu cover Latin, Greek and Cyrillic only and show boxes for Korean, Japanese or Chinese. Noto Sans CJK renders Korean, Japanese and Chinese (regular and bold; no italic). For any other typeface, upload it with a Font Loader node.
- font_sizeintegerdefault 32range 8–200
Font size (8-200 px)
Font height in pixels. Default 32. Text auto-wraps to fit within the drawn region width, so very large sizes inside a small region may overflow vertically. Scale roughly with image resolution — ~32px reads well at 1024px image, scale up proportionally for larger outputs.
- font_boldbooleandefault false
Bold
Apply bold weight. Uses the family's bold file when it has one; otherwise (an uploaded font, or a family without bold) the glyphs are thickened with an outline in the text color.
- font_italicbooleandefault false
Italic
Apply italic style. Falls back to upright when the font lacks an italic variant; ignored for an uploaded font.
- text_colorstringdefault #FFFFFF
Text color (hex)
Text fill color as a hex string. Accepts #RRGGBB (e.g. '#FFFFFF' white) or #RRGGBBAA for per-glyph alpha (e.g. '#FF000080' for 50% transparent red). Default #FFFFFF.
- text_alignstringdefault leftoptions: left, center, right
Horizontal alignment
Horizontal alignment inside the drawn region: 'left', 'center', or 'right'. Horizontal writing aligns each line; vertical writing places the block of columns.
- bg_colorstringdefault #000000
Background color (hex)
Solid color rendered behind the text, before the text is drawn. Accepts #RRGGBB. Combine with bg_opacity=0 (default) to disable, or higher to show a colored panel behind the text — useful for legibility over busy images.
- bg_opacityintegerdefault 0range 0–255
Bg opacity (0-255)
Alpha of the background panel. 0 = fully transparent (no panel), 255 = fully opaque. Use ~128-200 for a translucent panel that improves readability without hiding the underlying image.
- line_spacingintegerdefault 4range 0–40advanced
Line spacing (0-40 px)
Extra vertical pixels added between lines on top of the font's natural line height. 0 = compact, 40 = airy. Use ~4-8 for body text, more for headlines.
- vertical_alignstringdefault topoptions: top, middle, bottom
Vertical alignment
Vertical alignment inside the drawn region: 'top', 'middle', or 'bottom'. Horizontal writing places the block of lines; vertical writing places each column.
- writing_modestringdefault horizontaloptions: horizontal, vertical
Writing direction
'horizontal' writes left-to-right lines. 'vertical' writes top-to-bottom columns that advance right-to-left, characters upright; CJK punctuation switches to its vertical form when the font has one. Newlines start a new column.
- stroke_widthintegerdefault 0range 0–40
Outline width (0-40 px)
Outline drawn around every glyph, in pixels. 0 = none. 2-6 keeps a title readable over a busy image.
- stroke_colorstringdefault #000000
Outline color (hex)
Outline color as #RRGGBB or #RRGGBBAA. Only used when stroke_width > 0.
- shadow_offsetintegerdefault 0range 0–40
Shadow offset (0-40 px)
Drop shadow offset down and to the right, in pixels. 0 = no shadow.
- shadow_blurintegerdefault 4range 0–20advanced
Shadow blur (0-20 px)
Gaussian blur radius of the drop shadow. 0 = hard shadow. Only used when shadow_offset > 0.
- shadow_colorstringdefault #000000advanced
Shadow color (hex)
Shadow color as #RRGGBB (drawn at about 63% opacity) or #RRGGBBAA for an explicit opacity. Only used when shadow_offset > 0.
Tags
Alternatives in Text Tools
- Region Extract
Extract region polygons or bounding boxes from OCR region data.
- Text Concatenate
Concatenate up to 4 text inputs into one output.
- Text Decorator
Wrap text with a template (placeholder substitution).