Trim Variable Font Axis Ranges & Glyphs
No 5 MB capKeep dynamic variable typography while slashing file size: clamp unused extreme weights (e.g. keep wght 400–700, drop 100/900) and strip unused Unicode glyphs together in HarfBuzz WASM.
.ttf · .otf · .woff2
- Axis range clamping
- Glyph subsetting combined
- 320 KB → ~34 KB
Benchmark & Expected Output
320 KB → 34 KB (-89.4%)Before (Input)
Variable TTF · inter-variable.ttf (320 KB)
After (Output)
Trimmed Variable WOFF2 · inter-variable-400-700.woff2 keeping dynamic wght 400–700 range
| Property | Source: Variable Font | Target: WOFF2 |
|---|---|---|
| File extension | .woff2 | .woff2 |
| Compression | Brotli (entropy + table transform) | Brotli (entropy + table transform) |
| Outline / Curve | Quadratic or Cubic SFNT | Quadratic or Cubic SFNT |
| Browser support | All Modern Browsers (97%+) | All Modern Browsers (97%+) |
| OpenType GSUB/GPOS | Yes | Yes |
| Best for | Responsive typography across continuous weight (wght), width (wdth), slant (slnt), and optical size (opsz) axes from a single file. | Production web typography across all modern browsers, delivering 40%–60% smaller payloads than TTF/OTF and ~30% smaller files than WOFF 1.0. |
How it works
How to use Subset Variable Font locally in your browser
Shrink Variable Fonts by clamping axis ranges (e.g. wght 400–700) and subsetting glyphs simultaneously.
Load Variable Font
Drop your variable TTF, OTF, or WOFF2 into the workspace.
Clamp min/max weight & text
Set your used weight span (e.g. 400–700) and optionally paste copy or punctuation presets.
Export trimmed variable WOFF2
Download a variable font covering only the weights and characters your site actually uses.
FAQ
Frequently asked questions
How does trimming an axis range save so many bytes?
Dropping unused extreme deltas (like Thin 100 and Black 900) shrinks gvar outline deltas dramatically while keeping smooth 400–700 interpolation.
Does the output stay a valid CSS Variable Font?
Yes. fvar min/max bounds update cleanly so CSS font-weight: 400 700 works seamlessly.
Can I check missing glyphs at the same time?
Yes — the workspace includes live specimen preview and glyph coverage inspection.
Format specs
Next step