Trim Variable Font Axis Ranges & Glyphs

No 5 MB cap

Keep 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.

drop variable .ttf / .otf / .woff2 · clamp axis span + subset copy

.ttf · .otf · .woff2

  • Axis range clamping
  • Glyph subsetting combined
  • 320 KB → ~34 KB
100% browser-localVerify 0 bytes sent in Network tab

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

Source vs. target font specification comparison
PropertySource: Variable FontTarget: WOFF2
File extension.woff2.woff2
CompressionBrotli (entropy + table transform)Brotli (entropy + table transform)
Outline / CurveQuadratic or Cubic SFNTQuadratic or Cubic SFNT
Browser supportAll Modern Browsers (97%+)All Modern Browsers (97%+)
OpenType GSUB/GPOSYesYes
Best forResponsive 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.

  1. Load Variable Font

    Drop your variable TTF, OTF, or WOFF2 into the workspace.

  2. Clamp min/max weight & text

    Set your used weight span (e.g. 400–700) and optionally paste copy or punctuation presets.

  3. 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.