Two weeks ago I wrote that next/font/google broke on an ampersand, so our two fonts are 59KB in the repo now . That post was about the switch: why the build broke, what the diff looked like, and what weight: "300 700" means next to a variable font.
This one is about what is actually inside the two files, because self-hosting a font changes a subset from something a build step chose into an artifact sitting in your repository that you can open and count. So I opened them.
Notifio is a desktop app that watches rental search pages for new listings. The site in front of it is a Next.js app, and it loads three typefaces: Space Grotesk for headings, DM Sans for body text, and Geist Mono for small labels.
const spaceGrotesk = localFont ({ src : " ./fonts/space-grotesk-latin.woff2 " , variable : " --font-space-grotesk " , weight : " 300 700 " , display : " swap " , preload : true , });
Enter fullscreen mode
Exit fullscreen mode
Two of the three are files in server/src/app/fonts/ : 22,320 bytes of Space Grotesk…