2026.11.21 · 5 min · css · browsers · performance
Your handwriting, as a web font.
Draw your letters, export a font file, convert it to WOFF2, and one @font-face rule sets your site's text in your own handwriting. The tools, the conversion step every thread skips, font-display and the fallback stack, and why your letter variants work in the browser without extra code. As of 2026.11.
Ductus, a free browser weekend project billed as "Handwriting, as a Font", reached 462 points and 76 comments on Hacker News around 2026.11.15. You draw each letter on screen and get an .otf back. Every thread about it stops right there, at "I got an .otf". This post covers the rest: getting that file onto a website as real, selectable text. The steps are the same for any custom font: a file, an @font-face rule, font-display and a fallback stack.
Watch the 60-second version on Instagram.
Four steps
The .woff2 is drawn shorter than the .otf to say "smaller", not to show a measured ratio.
1. Draw your letters
- Ductus (free, in the browser): you draw each lowercase letter, a to z ("1 of 26"), then export an
.otf. - Calligraphr (the established tool): print a template as PDF or PNG, write in it by hand, scan it at 300–600 dpi in grayscale (not monochrome), upload it, and build a TTF or OTF. The free plan allows 75 characters per font, 2 variants per character, 1 font at a time and no ligatures. Pro allows 600 characters and 15 variants, for $10 for one month or $6/month over 6 months.
- Glyphr Studio (free, in the browser) and FontForge (desktop, open source, latest release 2025.10.09) are font editors, if you want to work on the glyphs yourself.
Ductus draws lowercase only. Plan for that: anything you didn't draw, capitals included, comes from the fallback font.
2. Export the font file
Ductus and Calligraphr both give you .otf or .ttf. Neither exports WOFF2. Glyphr Studio is the exception: it exports OTF, TTF, WOFF and WOFF2 directly.
3. Convert to WOFF2
An .otf on the web works, but WOFF2 is smaller, and web.dev's advice is that "WOFF2 is now supported everywhere", so serve only that. Google's woff2_compress does the conversion; fontTools can too, but it needs Brotli.
woff2_compress my-hand.ttf # → my-hand.woff2 (google/woff2)4. One @font-face rule
@font-face {
font-family: "My Hand";
src: url("/fonts/my-hand.woff2") format("woff2");
font-display: swap;
}
h1, .note {
font-family: "My Hand", "Comic Sans MS", cursive;
}The two highlighted lines are the ones people skip:
font-display: swapshows the fallback text right away and swaps in your font when it arrives. Withoutfont-display, text may be invisible while the font loads.optionalis the stricter choice: the font is used only if it's already there, with no swap.font-displayhas been Baseline widely available since January 2020.- The fallback stack covers every glyph you didn't draw. A late swap can shift the layout;
size-adjustreduces that.
Your variants work without extra code
Identical repeated letters are the giveaway of a handwriting font: the two l's in "hello" come out as exact copies. Calligraphr's answer is "randomisation": you draw 2 or more versions of a letter, and the font switches between them using OpenType contextual alternates (calt). Word and Adobe apps need that switched on. In CSS, font-variant-ligatures: normal, the default, "usually" turns calt on, according to MDN. So on the web your variants show up without a line of extra CSS. The letters in the figure are drawn by hand for the figure, not exported from a real font.
One more line from the spec worth knowing: a non-zero letter-spacing tells browsers not to apply optional ligatures. And keep expectations honest: Julia Evans, trying to make a font look more handwritten, still found the result "a little uncanny valley".
What people get wrong
- "Upload the .ttf and you're done." It works, but WOFF2 is smaller.
- "26 letters is the whole font." Capitals, digits, punctuation, € £ and accents fall back silently to another font, so mixed glyphs show up in the middle of words. Hacker News commenters asked for exactly these.
- "Body copy in my handwriting." Use it for headings and accents. Readability matters.
- "Any scan will do." Monochrome mode, angled photos and shadows give blotchy glyphs. Fast Company reported that Claude's handwriting-to-TTF attempt needed several rounds for the same reason.
- "It's saved in my account." Free Calligraphr fonts are stored in your browser, which may delete them. Download the file.
Two more things before you ship it. Calligraphr says anything you make with it "is your sole property", and commercial use is fine without credit. Ductus shows no terms, and its .otf carries no license info. Ductus exports also come with wide default spacing, and a commenter asked for a tracking control; in Calligraphr, per-letter spacing is Pro only.
On a client project I'd keep a handwriting font to one or two accents, a signature or a margin note, and set everything else in a font built for reading.
The short version
- Draw the letters in Ductus (lowercase a–z) or on a Calligraphr template, and export
.otfor.ttf. - Convert to WOFF2 with
woff2_compress(or export it from Glyphr Studio) and serve only that. - One
@font-facerule withfont-display: swap, and a fallback stack for every glyph you didn't draw. - Draw 2+ versions of each letter: browsers apply contextual alternates by default.
- Headings and accents, not body copy.
Sources: Ductus · Hacker News, Handwriting, as a Font · Calligraphr FAQ · Calligraphr pricing · Glyphr Studio, import and export · FontForge downloads · Converting TTF to WOFF2 (dev.to) · web.dev, Best practices for fonts · MDN, font-display · MDN, font-variant-ligatures · CSS Text 3, letter-spacing · Julia Evans, An attempt to make a font look more handwritten · Fast Company, Claude can turn your handwriting into a font