mirror of
https://github.com/hanzoai/shadcn.git
synced 2026-10-30 18:22:59 +00:00
display:swap paints the platform sans until the face arrives. On Linux that is DejaVu, so the first frame of every cold load was the one typeface this migration exists to stop showing. The face is self-hosted and ~70KB; holding the text for it costs less than showing the wrong one. size-adjust was 96.2%, derived from Basel and Zen's x-per-CAP (0.7180/0.7465). Those ratios are right and the arithmetic on them is right — they answer a question nobody asked, because no CSS property scales a glyph by its cap height. size-adjust scales the EM, so the factor is x-per-em: 0.4940/0.5300 = 0.9321. At 96.2% the type ran 3.2% larger than the Basel it replaced, which is better than the 6.8% of no correction and close enough to read as done.