News for hackers. Stuff that matters.
Re:How to avoid layout shifts caused by web fonts by togaen on Sunday January 30, 2022 @06:14AM (#30135944)
Easy: don’t use them. They are a waste of time anyway. I promise you your users care 0% about whether your font is “just right” or not.
Re:How to avoid layout shifts caused by web fonts by NaughtyShiba on Sunday January 30, 2022 @06:16AM (#30135953)
It’s not about “just right”. It’s about branding.
Re:How to avoid layout shifts caused by web fonts by togaen on Sunday January 30, 2022 @06:19AM (#30135980)
That’s just another thing your users don’t care about.
Re:How to avoid layout shifts caused by web fonts by Gigachad on Sunday January 30, 2022 @06:20AM (#30135994)
Spoken like a true hacker news user. Absolutely zero understanding outside of their field but still confidently parades their opinion.

Turns out that branding and consistency are actually very important.

Re:How to avoid layout shifts caused by web fonts by gwn1 on Sunday January 30, 2022 @09:02AM (#30137263)
Having a consistent logo is great and SVG is a good choice for that

But for things like the body font on a website, nobody really cares except the company's designers

Re:How to avoid layout shifts caused by web fonts by wtallis on Sunday January 30, 2022 @02:08PM (#30140063)
The worst case of this kind of designer hubris I've seen is Qualcomm's website, which includes a webfont that's completely pedestrian except that it makes every "Q" look like the Q in the company logo — which is actually a pretty poor stylistic fit for the rest of that font.
Re:How to avoid layout shifts caused by web fonts by hexo on Sunday January 30, 2022 @06:59AM (#30136301)
Turns out with modern technologies it is never ever consistent, nor nice, fast, ergonomic. Heck, sometimes not even usable at all.
Re:How to avoid layout shifts caused by web fonts by distantsounds on Sunday January 30, 2022 @09:42AM (#30137577)
Until the HTML spec is actually fixed so this isn't a problem solved by jabascript/css hacks, this is the accurate answer