Draw Your Font logo

Draw Your Font

OrganizationPopular
NousResearch
draw-your-font

Turn a handwriting photo into an installable TTF font.

Overview

PublisherNousResearch
Repositoryhermes-agent
Skill namedraw-your-font
Stars
250.4K
Forks
53.5K
Bundled files
1
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by NousResearch on GitHub. Read the source before you install it.

Installation

Install the Draw Your Font AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/NousResearch/hermes-agent/tree/main/optional-skills/creative/draw-your-font
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/NousResearch/hermes-agent.git /tmp/hermes-agent
mkdir -p .claude/skills
cp -r /tmp/hermes-agent/optional-skills/creative/draw-your-font .claude/skills/draw-your-font
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Draw Your Font in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Draw Your Font on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Draw Your Font is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

draw-your-font

Photo of handwritten letters in → installable font out. You do the seeing (find and label letters, judge quality); the CLI does all geometry (trace, metrics, font assembly). Never edit SVG paths or coordinates yourself.

Setup in Hermes (once per session)

The CLI is the pinned npm package draw-your-font@0.1.0 — run it via npx (Node ≥ 18 required, no global install needed):

bash
npx -y draw-your-font@0.1.0 --help

Wherever the examples below show $DYF, use npx -y draw-your-font@0.1.0. Shell variables do not persist between tool calls, so paste the full command each time. Everything runs locally; the user's handwriting never leaves the machine.

Photos arrive in Hermes either as a file path in the message or via the gateway image cache — use the actual file path with the CLI. When a photo lands in the conversation with no path, ask the user for the file (the CLI needs a real file, not your memory of the image).

Do the visual steps (contact sheets, previews, glyph sheets) by loading the PNGs with vision_analyze.

Decide the flow

  • User has no photo yet → offer the template: print, write, photograph.
  • User shares photo(s) of handwriting → main flow below.
  • User pasted an image but there is no file path → you can see it, but the CLI needs a file. Ask them to drag the image file into the terminal (that inserts its path) or give the path directly. Do not proceed from memory.
  • User wants changes to a font built this session → Refine section.

Template flow (best quality)

bash
$DYF template -o template.pdf --charset minimal   # or: spanish

Tell the user: print it, write one character per box with a dark pen (0.5 mm+), keep the letter sitting on the solid line, then photograph each page from above in good light and share the file paths. The grid prints in light grey and vanishes during processing - only their ink survives.

Main flow: photo(s) → font

1. Segment. Works for template pages and freeform photos alike:

bash
$DYF segment photo1.jpg photo2.jpg -d work

2. Look, then label. Load work/contact-1.png with vision_analyze (one per photo): every detected blob is numbered. This is the step where your eyes matter - check:

  • Did every written character get exactly one box? A letter drawn with separate strokes may appear as two boxes (relabel handles it: give the main box the character and mark the fragment ""), and two touching letters may share one box (ask the user to re-shoot just those, or accept the gap).
  • Junk boxes (shadows, ruled lines, smudges, page edges) → label them "".

Then write work/labels.json mapping blob id → character, e.g. {"0": "A", "1": "B", "7": "", "8": "a"}:

  • Template page: order is the charset order printed on the template - verify against the sheet instead of trusting it blindly. minimal order: A–Z, a–z, 0–9, then .,;:!?'"-()@#&+/$; spanish appends ÑñÁÉÍÓÚáéíóúü¿¡.
  • Freeform: identify each letter from the contact sheet. Uppercase vs lowercase for shape-twins (S/s, O/o, C/c, X/x…) is decided by relative size and position - compare against neighbors you're sure of.
  • The user told you what they wrote (e.g. "ABC then abc")? Trust it, map in reading order (top row first, left to right), and verify visually.
  • Same letter appears twice → label the better-drawn one, "" the other.

3. Build.

bash
$DYF build -d work --labels work/labels.json --name "Dan's Hand"

Name the font after the user (ask if unclear - one short question max).

4. Judge before delivering. Load work/preview.png and work/glyphs.png with vision_analyze and critique like an art director:

  • Broken or blotchy letters (bad trace) → often a faint pen stroke; try --weight 1, or ask for a re-shoot of just that letter.
  • Everything too thin/thick → rebuild with --weight 1 / --weight -1.
  • Jagged edges → rebuild with --smooth 1.5 (up to 2).
  • A letter placed wrong (e.g. a g not descending) → usually a mislabel; fix labels.json and rebuild.
  • Filled-in bowls (b, o, g look solid): should never happen - if it does, the crop is smudged; ask for a re-shoot.

Rebuilds are cheap and safe to iterate. Fix what you can yourself first; only bother the user for re-shoots when the source ink is the problem.

5. Deliver. The font lands at <workdir>/<NameWithoutSpaces>.ttf (the build output prints the exact path). Give that path and how to install: macOS - double-click → "Install Font"; Windows - right-click → "Install". Mention what's missing (the build prints uncovered letters) and offer, without pushing:

  • Web formats + CSS: rebuild with --formats ttf,woff,woff2,css.
  • A legibility read (below).
  • Their next photo to fill missing characters: re-run segment with ALL photos (old and new) into a fresh workdir - $DYF segment p1.jpg p2.jpg -d work2 - then relabel from the new contact sheets (blob ids renumber; the old labels.json does not carry over) and build from the new workdir.

Refine (conversational iteration)

User saysDo
"smoother / rounder"build … --smooth 1.5 (max 2)
"thicker / bolder"build … --weight 1 (max 2)
"thinner / lighter"build … --weight=-1 (negative needs the = form)
"the g looks bad"show them work/crops/<id>.png for that letter; offer re-shoot or smooth
"wrong letter" / swapedit labels.json, rebuild
"give me woff2 / web"build … --formats ttf,woff,woff2,css
custom preview text$DYF preview -d work --text "…" (after a build)

All refine commands rebuild from the stored crops - no re-photographing needed unless the ink itself is the problem.

Legibility report (offer after delivering)

bash
$DYF preview -d work --text "minimum mill rn m cl d I l 1 O 0 quick brown fox" -o work/legibility.png

Read it and give an honest, kind read: a score out of 10 for body-text use, the 2–3 letter pairs most likely to confuse (rn→m, cl→d, I/l/1, O/0), and one or two concrete fixes (rewrite those letters larger, more spacing). Note that display use (headings, notes) is more forgiving than paragraphs. Never gate delivery on this - it's advice, not a blocker.

Troubleshooting

Segmentation found far too many / too few blobs, grey guide lines surviving, shadow blobs, faint ballpoint strokes → see references/troubleshooting.md.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Draw Your Font AI skill do?

Turn a handwriting photo into an installable TTF font.

Why use Draw Your Font on TypingMind?

Because you install it once and use it with any model. Draw Your Font is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Draw Your Font in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/NousResearch/hermes-agent/tree/main/optional-skills/creative/draw-your-font. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Draw Your Font?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Draw Your Font?

As many as you like. As long as a model supports skills, you can use Draw Your Font with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Draw Your Font AI skill free?

Yes. It is published on GitHub by NousResearch under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇