Comic Lettering: put your own words on a generated image
Image models draw speech bubbles full of gibberish. Comic Lettering finds those bubbles, wipes them clean and fits your text inside. It also draws captions and sound effects straight onto the art, and lets you add bubbles of your own where the model drew none. No image editor needed.
One download, two hosts: an extension for AUTOMATIC1111, Forge and reForge, and a custom node for ComfyUI, with the same editor in both.
New here? Start with the step-by-step guide.

Features
Fills the bubbles in the art: white, gray, cream and black bubbles, smooth, jagged or cloud-shaped, are found, erased and filled, each line at the largest size that fits
Captions on the art with an outline and a shadow, or inside a bubble drawn for them: 13 shapes, from an oval to a phone message, a torn black box or a label with an arrow
Sound effects: big, tilted, outlined words like STOMP or THUD x3, placed in the empty parts of the picture, with a glow in any color
Bubbles of your own: 12 ready-made shapes with tails, or any shape you paint with a brush
Painted areas: censor bars, mosaic, blur, screen tones, focus and speed lines, tremble lines, shock halos, x-ray windows
Text along a line: paint one brush stroke and the words follow its curve
46 marks (hearts, stars, sweat, steam, anger marks, heart eyes and more) drawn as shapes, so they work in every font
Hand placement: drag, resize and turn captions, effects and your own areas
A look per kind of text: font, color preset, gradient, mood and decoration, separately for bubbles, captions and effects
Automatic mode: letter every image during generation with no clicks
The editor
Generate an image, press the speech-bubble icon under Generate, and the editor opens over the page. Type into Bubbles, one line per bubble. The number beside each line matches the number on the image. | starts a new line inside a bubble, and [6] at the start of a line sets its largest font. Everything applies as you type. There is no Apply button.

Bubbles and sound effects
Lines go into the bubbles in reading order, and line breaks are chosen for you at the largest font that fits. Sound effects are one per line and land in a calm, empty part of the art, clear of bubbles, characters and the caption. Shuffle moves them somewhere else.

Bubbles and areas of your own
When the model drew no bubble where you need one, add it with the Bubble tool: 12 shapes, eight tail directions, five colors. Or paint an area of any shape with the Brush: text is fitted into it, or it becomes a cover, a screen tone, lines or a window.


The look
Bubbles, the caption and sound effects each have their own font, color preset and mood. Twenty-nine fonts are bundled, and you can drop in your own.


ComfyUI
Add the Comic Lettering node (category image/postprocessing) between VAE Decode and Save Image. It letters every image that passes through it. The Open editor button on the node opens the same editor, and everything you do there is saved in the workflow.

Requirements
AUTOMATIC1111, Forge or reForge, or ComfyUI
Nothing extra to install: numpy, scipy and Pillow already ship with both hosts, and the editor comes built
Optional: ultralytics and a person segmentation model (ADetailer users usually have both), so automatic placement keeps text off the characters
Installation
WebUI (A1111, Forge, reForge)
Open Extensions, then Install from URL.
Paste https://github.com/KazeKaze93/sd-comic-lettering and click Install.
Restart the UI. The speech-bubble icon appears in the row of tool buttons under Generate.
ComfyUI
Clone https://github.com/KazeKaze93/sd-comic-lettering into ComfyUI/custom_nodes and restart ComfyUI.
To update either one, run git pull in the sd-comic-lettering folder, restart the host and refresh the browser page.
Limits
A bubble is found when it has a flat fill and a line round it, or is black on a light ground. Translucent, gradient or outline-less bubbles, bubbles cut by the image's edge and rectangular caption boxes are not found. Use a ready-made bubble or a painted area for those.
Only the 46 marks are drawn. Other emoji show as the font's missing-character box.
This is a lettering tool for single images. It does not lay out pages or panels.
More
Full documentation (every setting, troubleshooting, developer docs): github.com/KazeKaze93/sd-comic-lettering. Found a bug? Open an issue on GitHub.
The code is AGPL-3.0. Images you letter with this tool are yours.
Description
First release. Fills speech bubbles with your text, draws captions and sound effects, adds bubbles of your own. Works in A1111, Forge, reForge and ComfyUI.






