Development · Framework
Web Font Size Reduction Steps
Step-by-step font subsetting benchmarks and reduction workflow for web fonts
A practical reference table and optimization workflow demonstrating how each subsetting step reduces web font file sizes across Inter, Lora, and Iosevka. It measures gains from character set pruning, variable font axis trimming, stripping OpenType features, and dropping hinting data. It helps developers predict file size reductions before automating font subsetting in their build pipelines.
The framework
| Step | Inter | Lora | Iosevka |
| Before | 337.5 KB | 89.3 KB | 706.2 KB |
| Keep the site's characters + Latin-1 + Latin Extended-A | 100.0 KB | 42.0 KB | 71.4 KB |
| Limit opsz to 20-32 | 98.4 KB | n/a | n/a |
| Limit weight to 400-700 (Lora: 480-640) | 70.2 KB | 40.5 KB | n/a |
| Drop unused OpenType features | 47.8 KB | 40.3 KB | 17.6 KB |
| Drop hinting | n/a | 40.1 KB | n/a |
Thread follow-up video: before/after on https://shud.in, 3G network, no cache, intentionally no swap. Before: three font requests still pending at ~18,000 ms. After: inter core 30.9 KB, iosevka core 8.9 KB, lora italic core 24.2 KB; page transferred 63.2 KB of fonts and finished at 17.23 s.
What it's for
- Estimate bandwidth savings before setting up automated font subsetting
- Identify which font optimization steps provide the largest byte reduction
- Speed up web typography rendering and prevent blocking on slow mobile networks
Key points
- Pruning character sets to required site glyphs plus Latin-1 and Latin Extended-A
- Trimming variable font optical size (opsz) axes
- Constraining variable font weight ranges to necessary design boundaries
- Dropping unused OpenType layout features
- Removing font hinting bytecode to save additional bytes
- Before-and-after network transfer benchmarks on Inter, Lora, and Iosevka
Pricing
Free
Details
- Type
- Framework
- Category
- Development
- Topic
- Web Performance
- Open source
- No
- Platforms
- other
- For
- Frontend developers and web performance engineers
- Tags
- fonts, typography, web performance, optimization, subsetting, frontend
Why it was saved
- @shuding: Use it to estimate what each subsetting step is worth before running the prompt, and to see which steps help which kind of font (variable vs static, hinted vs not).
Related
Agent prompt to aggressively subset web fonts and verify with pixel diffs
Audit checklist to optimize WebGPU, Three.js, and 3D web performance.
Open-source animation library for React, Vue, and vanilla JavaScript
Portable agent skills that enforce design quality in AI-generated frontends
Lightweight, modular JavaScript animation engine for CSS, SVG, and DOM elements
Performance pattern for deferring below-the-fold components to accelerate perceived page load.
Updated