Font Subsetter
Subset fonts to the characters you use, instance variable fonts, and convert to WOFF2.
Install
irm https://raw.githubusercontent.com/chayprabs/localtools/main/font-subsetter/install.ps1 | iexlocaltools-font-subsetter updatelocaltools-font-subsetter uninstall
curl -fsSL https://raw.githubusercontent.com/chayprabs/localtools/main/font-subsetter/install.sh | bashlocaltools-font-subsetter updatelocaltools-font-subsetter uninstall
pipx install localtools-font-subsetterpipx upgrade localtools-font-subsetterpipx uninstall localtools-font-subsetter
Opens at http://127.0.0.1:47129 in your browser. Run localtools-font-subsetter --help for the command line. Set LOCALTOOLS_NO_OPEN=1 to install without opening it.
Direct download
| Platform | File | Size |
|---|---|---|
| Linux x64 | font-subsetter-1.0.2-linux-x64.zip | 37.0 MB |
| macOS Apple Silicon | font-subsetter-1.0.2-macos-arm64.zip | 23.9 MB |
| macOS Intel | font-subsetter-1.0.2-macos-x64.zip | 22.7 MB |
| Windows x64 | font-subsetter-1.0.2-windows-x64.zip | 16.0 MB |
SHA-256 checksums are in the release notes; the install scripts verify them for you.
See it
How to use
- Drop one or more TTF, OTF, WOFF or WOFF2 fonts.
- Tick Unicode presets (Latin, Cyrillic, Greek, Vietnamese...) and/or type the exact text you need.
- Optionally keep or drop OpenType features, keep hinting, and pin or limit variable axes such as wght=400:700.
- Pick WOFF2, WOFF or TTF/OTF and press Subset.
- Check the size, glyph count, missing characters and license bits, preview the subset font, then Download and Copy CSS for the @font-face rule.
FAQ
How much smaller do fonts get?
It depends on how many characters you keep. A Latin-only WOFF2 of a large multi-script font is often 70-95% smaller; keeping only the glyphs of a short headline can shrink a 100 KB font to a few KB.
Will kerning and ligatures still work?
Yes. By default fontTools keeps the standard layout features (kern, liga, calt, mark, locl and more). Choose all to keep every feature, none to drop them, or edit the list, e.g. +ss01,-liga.
Can it make a static font from a variable font?
Yes. Pin every axis (for example wght=700 wdth=100 opsz=drop) to get a static instance, or limit an axis (wght=400:700) to keep a smaller variable font.
Is it legal to subset my font?
That depends on the font license. The tool shows the license fields and warns when the font's fsType bits forbid embedding or subsetting. Open-licensed fonts (SIL OFL, Apache) allow it.
Does it upload my fonts?
No. Everything runs locally with fontTools on 127.0.0.1; there is no network access.