Who it is forA developer or type tinkerer who wants to reproduce the font or make a lighter or heavier version.
The problemA font that looks slightly off in spacing or weight needs its build settings adjusted and regenerated without starting from scratch.
The outcomeA fresh set of dist/ font files built from the pipeline, with the chosen spacing or weight applied.
What you need first
- A web browser, or a computer where you can install .ttf font files
- For rebuilding: Python 3, potrace (brew install potrace or apt install potrace), and a terminal
- For a site: access to the site's CSS and a folder to host font files
Steps
- Install potrace with
brew install potraceorapt install potrace. - Install Python dependencies with
python3 -m pip install -r requirements.txt. - Run the full build with
pipeline/run_all.sh, which the README says takes about 10 minutes. - Edit
WEIGHTS,SBorSPACEinpipeline/build_font.py, then runpipeline/run_all.sh fontto rebuild only the font. - Open
dist/specimen.htmlto check the new spacing and weight.
Prompt for your agent
In the repo harshpreet931/harshpreet-hand, install potrace and requirements.txt, run pipeline/run_all.sh, then change the Regular pen value in WEIGHTS in pipeline/build_font.py to <new-value> and run pipeline/run_all.sh font. Output the rebuilt file list in dist/ and the new WEIGHTS line. Verify by confirming dist/specimen.html opens and the Regular file timestamp updated.
Caveat. The README notes the font has no hinting, so it is not tuned for tiny text on old Windows ClearType even after a rebuild.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for harshpreet931/harshpreet-hand and "Rebuild the font and tune its spacing or weight"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer