glyphhanger
Command-line tool that finds the glyphs a web page uses and subsets web font files to them.
glyphhanger is a command-line tool that reads a web page or a local file and lists the characters its text uses as a Unicode range. With --subset, it writes smaller copies of font files that keep only those characters, in TTF, WOFF or WOFF2 format. With --css, it also writes a @font-face block for the subset files. It can follow local links with a spider, and limit the result to text in one font family or to visible text.
Worth knowing
Subsetting needs pyftsubset from fonttools, which needs Python. By default the page reader runs Puppeteer with headless Chrome; a --jsdom mode reads pages without it.
Identity
- Status
- Active
- Maintainer
- Zach Leatherman4
- Maintained by
- Individual
- First release
- 20175
Rendering and deploy
- Install with
- npm install -g glyphhanger2
Releases
Adoption
Sources
- 2026-10-28: links, Written in, GitHub stars
api.github.com/repos/zachleat/glyphhanger - 2026-10-28: links, Categories, Install with
github.com/zachleat/glyphhanger/blob/main/README.md - 2026-10-28: License
registry.npmjs.org/glyphhanger/latest - 2026-10-28: Maintainer, Runtime
github.com/zachleat/glyphhanger/blob/v6.0.0/package.json - 2026-10-28: First release
registry.npmjs.org/glyphhanger - 2026-10-28: Current major version, Last release
api.github.com/repos/zachleat/glyphhanger/releases - 2026-10-28: npm downloads a week
api.npmjs.org/downloads/range/2026-09-28:2026-10-04/glyphhanger - 2026-10-28: Dependent packages, Dependent repositories
packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/glyphhanger - 2026-10-28: Contributors
api.github.com/repos/zachleat/glyphhanger/contributors