News for hackers. Stuff that matters.
Re:How to avoid layout shifts caused by web fonts by maccard on Sunday January 30, 2022 @11:56AM (#30138754)
If you care that much you need to bundle the font with your site.
Re:How to avoid layout shifts caused by web fonts by capableweb on Monday January 31, 2022 @07:15AM (#30147133)
Yeah, I mean... Yeah. How is that an argument for just using `body {font-family: sans-serif}`?
Re:How to avoid layout shifts caused by web fonts by Spivak on Sunday January 30, 2022 @01:07PM (#30139480)
Which is what web fonts are. But you still have to handle the case and do something reasonable if the user or user-agent doesn’t load web fonts.