Optimizing Self-Hosted Fonts with fonttools and brotli
Self-hosted Lato and Inter were dragging down a Next.js build. Subsetting the glyphs with pyftsubset and re-compressing with brotli cut the font payload by roughly 89%. Here are the commands, the real before and after numbers, the localization tradeoffs, and the risks.