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
Everything since v1.0, in short:
More bubbles found in the art: jagged shouts full of letters, cloud and wavy bubbles, black bubbles with light letters (also on a light ground), tiny bubbles with a word or two. Letters the model drew into the outline are erased with the rest. Fewer wrong finds (faces in gray scenes, strips of white ground).
Line breaks and size by hand:
|starts a new line inside a bubble,[6]at the start of a line sets that bubble's largest font.13 bubble shapes for the caption: oval, box, cloud, burst, thought, wavy, jagged, dashed, drip (its tail falls as drops), torn, phone message, soft patch, and a label with an arrow. Themes light, dark, black, gray and blue, a fill and gradient of your own, a glow, a tail in any direction.
Painted areas under the lettering: censor bars, mosaic, blur and ghost copies; screen tones; focus, speed, tremor, dashed and halo lines; windows with a border or an x-ray look.
46 marks drawn as shapes (hearts, hatched hearts, heart eyes, sweat, steam, a breath cloud, tremble lines, flashes and more), and marks scattered round a caption or an effect in a color of their own.
Text effects: gradients at any angle, drips from the letters, a scream mood, a glow behind sound effects in any color, an outline for text in bubbles.
29 bundled fonts (SIL Open Font License), with Cyrillic in many of them; a missing letter falls back to the default font with a note.
Fixes: long texts no longer freeze, transparency and photo orientation are kept, the editor's undo, drag and render races, settings saved safely.
Update: in the WebUI run git pull in the extension folder or update it from the Extensions tab, restart and hard-refresh the page. In ComfyUI run git pull in custom_nodes/sd-comic-lettering and restart; saved workflows keep their values.





