Generative · Glyph Reference Card
Show The Model The Letters Instead Of Trusting It To Spell Them
- image
Diffusion models are famously bad at text for one specific reason: they have never seen a font file. They paint plausible glyphs. Ask for Stärke and you'll often get a plausible-looking word that isn't one - the umlaut migrates, the ß comes back as B, the accent lands over the wrong letter. Writing "spell it exactly like this" in the prompt helps a little. Showing the model the actual letters helps a lot more.
Generative · Glyph Reference Card renders exactly the characters your translated text needs, in the pack's real font, at a size big enough to read the letterforms off - and outputs it as an IMAGE. It's a conditioning aid, not an output. Nothing you do with it ends up in the final picture directly.
What it does with its three inputs
glyph_chars is the character set - normally wired straight from Generative · Generate Bundle's glyph_chars output, which is the pack working out which characters the replacements need. Because it's a plain STRING, you can also type into it, which is what you'll do the first time: paste äöüßçéà° and see what the card looks like before wiring anything.
font_dir is where the TTF comes from, default fonts. The pack ships Inter Tight in nine weights (Thin through Black) exactly for this. The resolver prefers the heaviest available face, so the card shows crisp, unambiguous letterforms rather than hairlines.
font_size is an INT between 32 and 512, default 220. It's the whole reason the card works: at 220 px the difference between a single-storey and a double-storey a is unmissable, which is the exact judgement the downstream image prompt is asking the model to make.
Output is one image - a card of those characters, drawn deterministically with a real font. Same input, same card, every run.
Why a card rather than a longer prompt
Because the pack's image prompt can describe a typeface forever and a diffusion model will still default to the neo-grotesque it reaches for by habit. A reference card is a different kind of information: a picture of the target glyphs in the target face. That's the same trick as any reference-image conditioning - models are far better at matching what they can see than at following what they're told - and it costs you one extra wire.
There's a second, duller job it does well: spec strings. 86°F-185°F, 3.8HP, 12000RPM. Those characters are where OCR-adjacent redraws fall apart, and having them on a card in front of the model measurably reduces the number of runs where the degree symbol turns into a superscript o.
Install
cd ComfyUI/custom_nodes
git clone https://github.com/rexqin/comfyui-vevor-mask-union
# restart ComfyUI
Manager → Vevor Mask Union. No dependencies, no model downloads - the fonts are the pack's own files, and it only needs Pillow, which ComfyUI already has. Node search: "Glyph".
Where people get burned
A bad font_dir gives you a card in the wrong typeface, silently. If the directory doesn't contain an InterTight-*.ttf, rendering falls back to PIL's default bitmap font - which is legible enough that the card looks fine and teaches the model the wrong letterforms. Same setting also feeds the width measurements in Generative · Generate Bundle, so the two failures arrive together. Leave it at fonts unless you've put a full family there.
It's a reference, not a base image. Wire it into whatever reference/IP-Adapter or second-image input your editing model accepts, never into the latent path. It's a card of text on a background; composite it or sample it and you'll get exactly that.
Send the characters, not the words. The node's job is the glyph set. Whole sentences at 220 px produce a card that's mostly cropped text - and if it does get sampled, the model reads a wall of type instead of a specimen sheet.
Don't expect it to fix a wrong font family choice. If the analyse pass classified a geometric sans as a neo-grotesque, you'll get a beautifully consistent card for the wrong face. The classification lives upstream in Generative · Analyze Prompt, and that's where a bad result should be corrected.
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| glyph_chars | STRING | — | |
| font_dir | STRING | fonts | — |
| font_size | INT | 22032–512 | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | — |