by riCk97306
Claude Code & Antigravity skill that turns handwriting sample photos into smooth TTF/OTF fonts and renders assignments/PDFs with realistic margins, math, boxed tables, and writing flow.
# Add to your Claude Code skills
git clone https://github.com/riCk97306/handwriting-font-pdfGuides for using ai agents skills like handwriting-font-pdf.
See how handwriting-font-pdf compares with popular alternatives.
handwriting-font-pdf is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by riCk97306. Claude Code & Antigravity skill that turns handwriting sample photos into smooth TTF/OTF fonts and renders assignments/PDFs with realistic margins, math, boxed tables, and writing flow. It has 50 GitHub stars.
handwriting-font-pdf's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/riCk97306/handwriting-font-pdf" and add it to your Claude Code skills directory (see the Installation section above).
handwriting-font-pdf is primarily written in Python. It is open-source under riCk97306 on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh handwriting-font-pdf against similar tools.
No comments yet. Be the first to share your thoughts!
Available after the catalog security scan passes.
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM lists this project for discovery and does not control or maintain the underlying repository.
Any security checks, ratings, or warnings displayed by SkillsLLM are automated and limited in scope. They do not constitute a security certification or guarantee that the software is safe, error-free, or free from malicious code, vulnerabilities, compromised dependencies, or prompt-injection risks.
Review the source code, permissions, dependencies, and configuration before installing or running any third-party skill. Use is at your own risk. To the maximum extent permitted by applicable law, SkillsLLM is not liable for losses arising from third-party software.
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
handwriting-font-pdf)Turn phone photos of handwritten character sheets and notebook pages into smooth, slim-stroke .ttf & .otf fonts and authentic multi-page handwritten PDFs with formulas, matrices, boxed tables, block diagrams, and natural page physics — powered directly by Claude Code or Google Antigravity.
.ttf & .otf)Input: Handwritten Characters (0–9, A–Z, a–z) |
Input: Greek & Math Symbols | Output: Smooth Vector Glyph Sheet (148+ glyphs) |
|---|---|---|
Rendered Specimen (TTF & OTF mixed text & equations):
< 10 MB)| Input: Writing Flow & Angle Reference | Output: Cover Page | Output: Math + Boxed Table | Output: Diagrams + Equations |
|---|---|---|---|
| Profile 2 Input Sheet | Profile 2 Flow Sample | Profile 2 Rendered Output |
|---|---|---|
a, b, d, e, g, o, p, q, 0, 4, 6, 8, 9, α, δ, θ, φ, ∇)..ttf + .otf Export: Compiles smooth TrueType quadratic B-splines (TTGlyphPen) alongside lossless Qu2CuPen OpenType CFF outlines (T2CharStringPen), paired with a hollow .notdef fallback (zero solid black boxes).analyze_sheet.py --flow)..otf for cover titles, section headings, and questions; pen blue .ttf for answers, equations, matrices, and diagrams.220 DPI A4 and auto-tunes JPEG compression to stay under 10 MB.Requires Python 3.10+. Install dependencies:
pip install -r requirements.txt
opencv-python>=4.8.0 — ink isolation, connected components, contour extractionnumpy>=1.24.0 — paper vignette & vectorized SDF mathPillow>=10.0.0 — subpixel text strips, rotated pasting, JPEG compressionscipy>=1.10.0 — image/signal utilitiesfonttools>=4.43.0 — TrueType (TTF) & CFF OpenType (OTF) compilationpymupdf>=1.23.0 — source PDF extraction & compressed multi-page PDF exportProject-scoped (for the current repo):
mkdir -p .claude/skills
cp -r skills/handwriting-font-pdf .claude/skills/handwriting-font-pdf
Global (available in every Claude Code project):
mkdir -p ~/.claude/skills
cp -r skills/handwriting-font-pdf ~/.claude/skills/handwriting-font-pdf
(Windows PowerShell global install):
New-Item -ItemType Directory -Force "$HOME\.claude\skills" | Out-Null
Copy-Item -Recurse -Force ".\skills\handwriting-font-pdf" "$HOME\.claude\skills\handwriting-font-pdf"
Workspace-scoped:
New-Item -ItemType Directory -Force ".agents\skills" | Out-Null
Copy-Item -Recurse -Force ".\skills\handwriting-font-pdf" ".agents\skills\handwriting-font-pdf"
Global Skill (~/.gemini/config/skills/):
New-Item -ItemType Directory -Force "$HOME\.gemini\config\skills" | Out-Null
Copy-Item -Recurse -Force ".\skills\handwriting-font-pdf" "$HOME\.gemini\config\skills\handwriting-font-pdf"
Or install the full repo as an Antigravity Plugin (uses plugin.json):
Copy-Item -Recurse -Force "." "$HOME\.gemini\config\plugins\handwriting-font-pdf"
skills CLI)npx skills add riCk97306/handwriting-font-pdf
Once installed, place your photos and target PDF in your workspace folder and prompt Claude or Antigravity:
.ttf & .otf Fonts from PhotosUse the handwriting-font-pdf skill to build "MyHandwriting font.ttf" and "MyHandwriting font.otf"
from "letters.jpg" and "symbols.jpg". Keep strokes slim and uniform, preserve inner loops,
avoid any missing-glyph black boxes, and generate glyph verification preview images.
Add Greek letters (α–ω) and ∇ from "greek_sheet.jpg" into my existing TTF and OTF fonts,
replace lowercase "w" using "new_w.jpg", and verify "μ" works properly without affecting
any previously working letters.
Convert "Assignment.pdf" into an exact handwritten PDF ("Assignment_Handwritten.pdf")
using "MyHandwriting font.ttf" and "MyHandwriting font.otf", matching the writing flow,
ink tone, and natural angle from "flow_reference.jpg".
Update the handwritten PDF with these styling rules:
1. Remove any underline decorations.
2. Render headings and questions in black ink, and answers/equations/diagrams in blue ink.
3. Add 4-side hand-drawn page margins with slight randomness per page.
4. Randomize writing angle per page/line and add natural line-start variation.
5. Make tables hand-drawn boxed grids and keep the final PDF under 10 MB.
6. Increase the font size by 1 point across the document.
Create the exact same font + handwritten PDF pipeline for another handwriting style inside
"./style2/" without touching any of the original files:
- Character & sign sheets: "./style2/chars.jpg", "./style2/greek.jpg"
- Writing flow references: "./style2/flow1.jpg", "./style2/flow2.jpg"
- Assignment PDF: "./style2/Assignment.pdf"
More ready-to-use prompt recipes are available in skills/handwriting-font-pdf/references/prompts.md.
Segment a handwriting sheet to inspect component IDs visually:
python skills/handwriting-font-pdf/scripts/analyze_sheet.py assets/examples/sample_characters.jpg --out-dir ./tmp_analysis --thresh 65 --min-area 12
Measure writing slope & pen ink color from a flow photo:
python skills/handwriting-font-pdf/scripts/analyze_sheet.py assets/examples/sample_flow_reference.png --flow
.
├── README.md
├── LICENSE # MIT License
├── requirements.txt # Python dependencies
├── plugin.json # Antigravity Plugin manifest
├── .gitignore
├── assets/
│ ├── examples/ # Sample handwriting & flow input photos
│ └── demos/ # Rendered glyph sheet & handwritten PDF page previews
└── skills/
└── handwriting-font-pdf/
├── SKILL.md # Core Claude & Antigravity skill instructions
├── references/
│ ├── prompts.md # Extended prompt playbook
│ └── tuning_guide.md # Threshold, SDF, metrics & compression tuning
└── scripts/
├── analyze_sheet.py # Component segmenter & flow-angle analyzer CLI
├── font_core.py # SDF font compiler (TTF + OTF) & preview renderer
└── pdf_composer.py # Multi-page handwritten PDF rendering engine
This project's source code, skill definitions, and documentation are licensed under the MIT License.
Note for Contributors & Forkers: If you share personal handwriting photos or compiled
.ttf/.otffont files derived from real people's handwriting, ensure you have t