DEDUPED Hot AI repos, turned into use cases Get the Monday 5

How to rebuild the font and tune its spacing or weight with Harshpreet Hand

Run the pipeline locally, then change spacing or nib weight and rebuild the font.

  • Content
  • Intermediate
  • 30 minutes
  • From the README
  • Claude Code
  • Codex
  • Cursor
  • Gemini CLI

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

  1. Install potrace with brew install potrace or apt install potrace.
  2. Install Python dependencies with python3 -m pip install -r requirements.txt.
  3. Run the full build with pipeline/run_all.sh, which the README says takes about 10 minutes.
  4. Edit WEIGHTS, SB or SPACE in pipeline/build_font.py, then run pipeline/run_all.sh font to rebuild only the font.
  5. Open dist/specimen.html to 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

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