DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to export a handwriting web font with CSS for a site with Draw Your Font

Generate WOFF, WOFF2, and an @font-face snippet to use your handwriting on a website.

Short answer: Build the font from your photo with npx draw-your-font make photo.jpg --chars "ABCabc" --name "My Hand"; then add web formats by running npx draw-your-font make photo.jpg --chars "ABCabc" --name "My Hand" --formats ttf,woff,woff2,css; copy the generated @font-face snippet into your site stylesheet. All steps.

  • Content
  • Intermediate
  • 30 minutes
  • From the README
  • Any agent

Who it is forA web designer or personal site owner who wants a custom handwritten headline or body font.

The problemWeb fonts need several formats and a CSS snippet, which is tedious to set up by hand.

The outcomeWeb-ready WOFF and WOFF2 files plus a CSS @font-face snippet for your site.

What you need first

  • Node.js 18 or newer installed
  • A photo of your handwritten alphabet on paper, or a printed template filled in by hand
  • Claude Code installed if you want the skill route; the CLI works without it

Steps

  1. Build the font from your photo with npx draw-your-font make photo.jpg --chars "ABCabc" --name "My Hand".
  2. Add web formats by running npx draw-your-font make photo.jpg --chars "ABCabc" --name "My Hand" --formats ttf,woff,woff2,css. (inferred, check the README)
  3. Copy the generated @font-face snippet into your site stylesheet.
  4. Load a test page and confirm the font renders in the browser.

Prompt for your agent

Use the draw-your-font repo to build a font from <photo-path> with --formats ttf,woff,woff2,css and save the outputs to <site-assets-dir>. Expected output is WOFF, WOFF2, and a CSS @font-face snippet. Verify that the CSS references both the WOFF2 and WOFF files.

Caveat. The README lists web formats and a CSS snippet, but it does not describe how the font is tested across browsers, so check rendering yourself.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for danilo-znamerovszkij/draw-your-font and "Export a handwriting web font with CSS for a site"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer