r/Unicode • u/AsianKidTV • 20h ago
I made a tool that draws pictures with Zalgo
To begin the idea stems from ASCII art which is rows of characters, so it needs a fixed-width font and breaks anywhere that doesn't have one. I wanted to try the other way: one line of text, where the picture is the combining marks (unicode) stacked on each character. How it works: - Each column of the picture is one base character plus a run of marks from U+0300 to U+036F. Marks below go first, then the ones above. That's canonical order, so the output is already NFC and nothing gets rewritten when you post it. - The marks are the shading. Double bars are dark, dots are mid, ticks are light. - Every font moves the stack a different amount per mark, so the tool measures the font in the browser instead of guessing. - X's own font doesn't stack marks at all. So on X each column sits on U+02CD (modifier letter low macron), which that font doesn't have, and the browser hands the whole column to a system font that does stack. - Blank lines holding U+2800 go above and below, so the stacks have room and don't get cut off. This project is free, open source (MIT), no sign-up, and there's a command line version. zalgoart.com github.com/jackulau/ZalgoArt