π CR Simple Text Panel
A colored card with text on it, generated from scratch
- image
- show_help
Not to be confused with CR Simple Meme Template - that one overlays text onto an image you already have. This node generates the image itself: a solid-color panel of whatever size you specify, with your text rendered inside it. No input image required. Think title cards, intro/outro slides, a lower-third graphic, or a plain text block to composite into a bigger layout alongside CR Image Panel or CR Page Layout.
How it works
Set panel_width/panel_height for the canvas size and background_color for its fill. Type your text, pick font_name from the pack's bundled fonts, and set font_size. align (top/center/bottom) and justify (left/center/right) position the text block within the panel - the usual nine-position grid you'd expect from any text-layout tool. font_outline_thickness and font_outline_color add a stroke around the letters if you need the text to stand out from the background more than color contrast alone provides. Both font_color and background_color (and the outline color) accept a big list of named colors plus custom - pick custom and set the matching font_color_hex/bg_color_hex field for any exact color you want.
The inputs and outputs that matter
panel_width/panel_height- the canvas size in pixels.text- what actually gets rendered. This is the input you're here for.font_name,font_size- typeface and scale.align/justify- where the text sits within the panel.background_color(+bg_color_hexif custom) - the panel's fill.font_color(+font_color_hexif custom),font_outline_thickness,font_outline_color- text styling.
Output: a single image - the rendered panel, ready to composite, save, or feed into a layout node - plus the standard show_help link.
How to install it
Comfyroll Studio (Suzie1 and RockOfFire) - ships its own font files, so the font dropdown isn't empty on install.
- ComfyUI Manager - search "Comfyroll Studio," install, restart.
- Manual -
cd ComfyUI/custom_nodes && git clone https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes.git, then restart.
Common issues & troubleshooting
Confused this with the meme node. If you've got a picture already and want to caption it, you want CR Simple Meme Template, not this one. This node has no image input at all - it only ever produces a flat panel from scratch.
Text overflowing the panel or getting clipped. There's no auto-shrink-to-fit here the way the meme node has - font_size is fixed, so if your text is long and font_size is large relative to panel_width, it'll overrun the edges. Either shorten the text, reduce font_size, or widen the panel.
Custom color not applying. Make sure the relevant dropdown (font_color or background_color) is actually set to custom - otherwise the hex field is ignored in favor of the named color you picked.
Comfyroll nodes missing entirely. This node sits in the Graphics group, the part of the pack most prone to font/image-library import failures. Check your startup log for Comfyroll Studio: Failed to load Graphics nodes and a trailing NameError: name 'CR_HalftoneGrid' is not defined - a symptom of an earlier import error, usually an incompatible Pillow version pulled in by another custom node. Force-reinstall Pillow (pip install --upgrade --force-reinstall pillow) and restart.
Inputs (13)
| Name | Type | Default | Description |
|---|---|---|---|
| panel_width | INT | 5128β4096 | β |
| panel_height | INT | 5128β4096 | β |
| text | STRING | text | β |
| font_name | COMBO | 10 options: Roboto-Regular.ttf, Quicksand-Bold.ttf, Oswald-Bold.ttf, comic.ttf, AlumniSansCollegiateOne-Regular.ttf, NotoSansArabic-Regular.ttf, +4 | |
| font_color | COMBO | 30 options: custom, white, black, red, green, blue, +24 | |
| font_size | INT | 1000β1024 | β |
| font_outline_thickness | INT | 00β50 | β |
| font_outline_color | COMBO | 30 options: custom, white, black, red, green, blue, +24 | |
| background_color | COMBO | 30 options: custom, white, black, red, green, blue, +24 | |
| align | COMBO | 3 options: top, center, bottom | |
| justify | COMBO | 3 options: left, center, right | |
| font_color_hexopt | STRING | #000000 | β |
| bg_color_hexopt | STRING | #000000 | β |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | β |
| show_help | STRING | β |