将手写照片转化为真实字体(TTF/WOFF/WOFF2)的免费开源工具,使用CLI或Claude Code技能,所有处理均在本地完成,无需上传。

Stars

270

7 天增长

暂无数据

Fork 数

29

开放 Issue

1

开源协议

MIT

最近更新

2026-07-24

为什么值得关注

独特的一次性工作流:拍摄手写字母表,立即得到可安装的字体。AI仅用于标注,矢量化过程确定且私有,是付费服务(如Calligraphr)的免费替代。

适合谁使用

  • 希望数字化自己手写文字的普通用户
  • 需要定制手写字体的平面设计师
  • 对字体生成管线感兴趣的开发者
  • 寻找免费字体制作方案的教育工作者和爱好者

典型使用场景

  • 从笔记本照片创建个人手写字体
  • 为网站生成WOFF2和CSS的自定义网页字体
  • 快速制作品牌或邀请函的字体原型
  • 学习OCR、矢量化和字体生成流程

项目优势

  • 完全本地运行,不上传,手写数据不离开设备
  • 免费开源(MIT),无隐藏费用或积分
  • 能处理真实、不完美的照片(光线差、阴影、螺旋装订)
  • CLI可脱离AI运行,仅依赖用户提供的标签

使用前须知

  • 目前仅支持单变量字体,字距、连字和字母随机化计划在v2中实现
  • 需要Node.js 18+,不适合没有较新Node环境的系统
  • 使用AI视觉标注时可能产生小错误,需要手动修正

README 快速开始

draw-your-font

Turn a photo of your handwriting into a real font (TTF/WOFF/WOFF2) - free, open source, no uploads, no credits.

Draw your alphabet on paper. Take a photo. Get your font.

This is a real one-shot result: dim light, spiral binding, page shadow. One photo in, installable font out.

Use it as a Claude Code skill (the fun way)

npx skills add danilo-znamerovszkij/draw-your-font

Then in Claude Code, invoke the skill and hand it your photo:

/draw-your-font "here's a photo of my handwriting - make my font" (drag the photo into the terminal)

Claude finds your letters in the photo, labels them with vision, builds the font, shows you a preview, and critiques its own work. Iterate by talking:

  • "make it rounder" / "a bit bolder"
  • "the g looks bad" - it shows you the crop and fixes or asks for a re-shoot
  • "give me woff2 + css for my website"
  • "how readable is it?" - a legibility score and the two worst letter pairs

No photo yet? Say "give me a font template" and you get a printable PDF grid: write your alphabet with a dark pen, photograph the pages, and hand them back. Messy freeform photos work too. Napkins, notebooks, spiral binding, bad lighting: that's what the vision step is for.

Everything runs locally on your machine. Your handwriting never leaves it.

Use it as a CLI (no AI at all)

The skill is a thin layer over a deterministic npm CLI. It works on its own when you can tell it what you wrote:

# freeform photo, you know the order you wrote in:
npx draw-your-font make photo.jpg --chars "ABCabc" --name "My Hand"
# → MyHand.ttf - double-click, install, done.

# best quality: print a template, fill it, photograph:
npx draw-your-font template -o template.pdf --charset minimal   # or: spanish
npx draw-your-font make page1.jpg page2.jpg --charset minimal --name "My Hand"

Pure npm, zero system dependencies: no FontForge, no ImageMagick, no potrace binary. Works on macOS / Linux / Windows wherever Node ≥ 18 runs.

CLI reference

CommandWhat it does
templateprintable A4 PDF grid (--charset minimal|spanish)
segment find letters → crops + numbered contact sheet + blobs.json
buildlabeled crops → font (--labels / --chars / --charset)
make segment + build in one shot
previewrender any text with the built font

Refinem

项目描述

Turn a photo of your handwriting into a real font (TTF/WOFF/WOFF2) - free, open source, no uploads. Node CLI + Claude Code skill.

相关仓库与替代方案

根据分类、Topic 和编程语言匹配的相似项目。

xai-org
精选
xai-org GitHub avatar

grok-build

Grok Build is SpaceXAI's terminal-based AI coding agent that runs as a full-screen TUI, understands codebases, edits files, executes commands, searches the web, and manages tasks interactively or headlessly.

AI 与机器学习AI 智能体
20,399
jamesob
精选
jamesob GitHub avatar

local-llm

A comprehensive guide for building and configuring a high-end local machine to run state-of-the-art LLMs, with detailed hardware choices, BIOS tuning, and Docker-based model serving.

AI 与机器学习大语言模型
1,520
mereyabdenbekuly-ctrl
精选
mereyabdenbekuly-ctrl GitHub avatar

clodex-ide

Clodex is an open-source, local-first agentic IDE that combines persistent AI tasks, code, terminal, browser, Git, models, memory, and governed execution in one Electron workspace, currently in technical preview.

AI 与机器学习AI 智能体
833