{
 "schema_version": 1,
 "generated": "2026-10-24",
 "id": "harshpreet931-harshpreet-hand--rebuild-font-and-tune-spacing",
 "repo": "harshpreet931/harshpreet-hand",
 "repo_url": "https://github.com/harshpreet931/harshpreet-hand",
 "repo_slug": "harshpreet931-harshpreet-hand",
 "title": "Rebuild the font and tune its spacing or weight",
 "page_title": "How to rebuild the font and tune its spacing or weight with Harshpreet Hand",
 "summary": "Run the pipeline locally, then change spacing or nib weight and rebuild the font.",
 "who": "A developer or type tinkerer who wants to reproduce the font or make a lighter or heavier version.",
 "problem": "A font that looks slightly off in spacing or weight needs its build settings adjusted and regenerated without starting from scratch.",
 "outcome": "A fresh set of dist/ font files built from the pipeline, with the chosen spacing or weight applied.",
 "steps": [
  "Install potrace with `brew install potrace` or `apt 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`, `SB` or `SPACE` in `pipeline/build_font.py`, then run `pipeline/run_all.sh font` to rebuild only the font.",
  "Open `dist/specimen.html` to check the new spacing and weight."
 ],
 "agent_prompt": "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.",
 "agents": [
  "claude-code",
  "codex",
  "cursor",
  "gemini-cli"
 ],
 "difficulty": "Intermediate",
 "time": "30 minutes",
 "basis": "readme",
 "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.",
 "category": "Content",
 "tags": [
  "Content"
 ],
 "lang": "python",
 "requirements": [
  "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"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.8,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/harshpreet931-harshpreet-hand/rebuild-font-and-tune-spacing/",
 "md": "https://dedupedai.com/use-cases/harshpreet931-harshpreet-hand/rebuild-font-and-tune-spacing/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/harshpreet931-harshpreet-hand--rebuild-font-and-tune-spacing.json",
 "api_version": "v1"
}
