A small personal build script for patching selected fonts with the official Nerd Fonts Docker image.
The repository intentionally does not store font binaries. Fonts are downloaded from font.json, patched with nerdfonts/patcher, and packaged into release zip files.
- Go
- Docker
- 7-Zip (
7zor7zz) for DMG and ZIP source
Review font.json, then run:
go run . -config font.jsonTo validate the configuration and check required commands without downloading or patching:
go run . -config font.json -dry-runOutputs are written to dist/:
<font-group>.zipfor each enabled groupall_fonts.zipcontaining all patched fonts
font.json groups fonts by output archive. Each group has a safe name, one or more remote sources, and optional include patterns.
Supported source types:
font: direct.ttfor.otfURLzip:.zipURL containing.ttfor.otffilesdmg: DMG source extracted through external 7-Zip, used for SF Mono
The default patcher settings run:
docker run --rm -v <input>:/in -v <output>:/out -e PN=10 nerdfonts/patcher --completemain.go: thin CLI entry pointinternal/app/: build orchestrationinternal/config/:font.jsonloading and validationinternal/source/: font downloads and source extractioninternal/docker/: Nerd Fonts Docker invocationinternal/ziputil/: output archive helpers.github/workflows/patch.yml: manual release workflow