Engineering Guides

Removing Font Hinting (fpgm/prep/cvt): Saving 8–15% Bytes on Retina Screens

Strip legacy TrueType bytecode hinting tables (fpgm, prep, cvt) with HarfBuzz WASM to save 8%–15% WOFF2 bytes for macOS, iOS, and modern HiDPI screens.

3 min readUpdated:

Quick Answer

TrueType bytecode hinting tables (fpgm, prep, cvt, plus glyf instructions) can add 8%–15% to web font files, yet macOS, iOS, Android, and modern HiDPI screens completely ignore TrueType hints. Stripping hinting via HarfBuzz NO_HINTING shrinks WOFF2 size while preserving crisp GSUB/GPOS layout features.

Which platforms actually use TrueType bytecode hinting

TrueType hinting was engineered in the 1990s to snap glyph stems onto coarse 72–96 DPI CRT grids on early Windows ClearType/GDI renderers. Today, macOS CoreText, iOS, Android FreeType auto-hinter, and modern 2x/3x Retina displays ignore manual TrueType bytecode instructions altogether.

On modern web apps where most traffic reads on HiDPI laptops and mobile phones, shipping tens of kilobytes of fpgm/prep/cvt bytecode adds dead weight to every font load.

When to keep hinting vs. drop hinting

Drop hinting for web WOFF2 bundles targeting modern browsers, mobile apps, and CJK subsets (where complex stroke bytecode bloats files heavily). Keep hinting when distributing desktop TrueType .ttf files for low-DPI Windows XP/7/10 office monitors at 10–13 px body sizes.

  • Drop hinting: Web WOFF2, mobile apps, Retina/4K UI, large CJK fonts.
  • Keep hinting: Legacy low-DPI Windows desktop software, small 11 px monospace code editors on 1x displays.

Frequently asked questions

Does removing hinting affect kerning, ligatures, or glyph outlines?

No. HarfBuzz HB_SUBSET_FLAGS_NO_HINTING strips only grid-fitting instruction bytecode while keeping Bézier curves, kerning, and OpenType features intact.

How much space does stripping hinting save?

Typically 8%–15% on heavily hinted Latin fonts and up to 20% on autohinted CJK TrueType binaries.

Can I inspect whether a font currently contains hinting tables?

Yes — open Font Inspector locally to inspect table stats and hinting presence before converting.

Authoritative References

Tools used in this guide

Related formats

Related Comparisons

More engineering guides