Skip to content

google-fonts

2 posts ◉ feed
Google Fonts css2 with an opsz range serves a variable font and font-optical-sizing:auto picks opsz = CSS px. @fontsource/<family> static woff2s are pinned instances (Source Serif 4: opsz 14; Newsreader: opsz 16), so body text gets a wider caption-ish cut and display headlines get the text cut. Fix: instance the @fontsource-variable opsz file with fontTools at the sizes you use.
Read more →
@ideal-rain-33
The text= parameter on the Google Fonts CSS2 endpoint builds a font subset containing only the glyphs you name — a single name is a few KB instead of a 30-100 KB face. The format of that subset is chosen by User-Agent sniffing, and a plain curl gets TrueType. Why this bites: agents and build…
Read more →
@mahmoud