# subfont

Command line tool that subsets web fonts to the characters a page uses, then injects the subsets and preload hints into the page.


Source: https://findsoftware.frbit.cloud/subfont/
Last reviewed: 2026-10-28
Listed since: 2026-10-28

## Record

### Links

- repository: https://github.com/Munter/subfont
- docs: https://github.com/Munter/subfont/blob/master/README.md

### Identity

- status: active
- maintainer: Peter Brandt Müller
- maintainerType: individual
- parent: unknown
- firstRelease: 2017
- hqCountry: unknown

### Kind

- category: build-tool
- hosting: not applicable
- language: javascript
- runtime: node
- runtimeMin: node 10
- basedOn: unknown

### Content

- contentStore: not applicable
- databases: not applicable
- adminUi: not applicable
- headlessApi: not applicable
- templating: not applicable
- i18n: not applicable

### Rendering and deploy

- runsAs: local
- renderingModes: not applicable
- installMethod: npm install -g subfont

### License

- licenseModel: open-source
- license: MIT

### Releases

- currentMajor: 7
- latestReleaseDate: 2026-09-20

### Adoption

- githubStargazers: 1636
- packagistDownloads: not applicable
- npmWeeklyDownloads: 4909
- contributors: 12
- pluginCount: unknown
- packagistMonthlyDownloads: unknown
- ecosystemsMonthlyDownloads: unknown
- httpArchiveSites: unknown
- wordpressActiveInstalls: unknown
- dependentRepos: 174
- dependentPackages: 6

### Sources

- urls: https://api.github.com/repos/Munter/subfont (read 2026-10-28)
- urls: https://github.com/Munter/subfont/blob/master/README.md (read 2026-10-28)
- maintainer: https://github.com/Munter/subfont/blob/master/LICENSE.md (read 2026-10-28)
- language: https://api.github.com/repos/Munter/subfont (read 2026-10-28)
- category: https://github.com/Munter/subfont/blob/master/README.md (read 2026-10-28)
- runtime: https://github.com/Munter/subfont/blob/v7.3.0/package.json (read 2026-10-28)
- runtimeMin: https://github.com/Munter/subfont/blob/v7.3.0/package.json (read 2026-10-28)
- installMethod: https://github.com/Munter/subfont/blob/master/README.md (read 2026-10-28)
- runsAs: https://github.com/Munter/subfont/blob/master/README.md (read 2026-10-28)
- license: https://api.github.com/repos/Munter/subfont (read 2026-10-28)
- licenseModel: https://github.com/Munter/subfont/blob/master/README.md (read 2026-10-28)
- firstRelease: https://registry.npmjs.org/subfont (read 2026-10-28)
- currentMajor: https://registry.npmjs.org/subfont/latest (read 2026-10-28)
- latestReleaseDate: https://registry.npmjs.org/subfont (read 2026-10-28)
- githubStargazers: https://api.github.com/repos/Munter/subfont (read 2026-10-28)
- contributors: https://api.github.com/repos/Munter/subfont/contributors (read 2026-10-28)
- npmWeeklyDownloads: https://api.npmjs.org/downloads/range/2026-09-28:2026-10-04/subfont (read 2026-10-28)
- dependentPackages: https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/subfont (read 2026-10-28)
- dependentRepos: https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/subfont (read 2026-10-28)

## Notes

subfont is a command line tool that a developer runs on HTML pages to produce font subsets and the markup that loads them. The package is installed globally with npm and runs on Node.js. The project has no site of its own: its [README](https://github.com/Munter/subfont/blob/master/README.md) is the documentation, and the copyright line in its license names Peter Brandt Müller.

## Worth knowing

The tool runs on the developer's machine or in a build step, so the site a visitor receives holds the subsets, not the tool. The README adds that subfont is meant for the files a site deploys to static file hosting, and that characters the page does not show can be added to the subsets by hand.

---

Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Attributes are recorded, never scored; absent means unknown.
Credit, in full: FindSoftware, CC BY 4.0
