4 ms·
That's exactly what I was thinking while reading this. Whenever I see things like "apply the font style to a nbsp, to ensure the DOM loads it" I always wonder w
by city41 6y ago
That's exactly what I was thinking while reading this. Whenever I see things like "apply the font style to a nbsp, to ensure the DOM loads it" I always wonder why web developers so often have to "trick" the browser. Why can't we flesh out the common use cases and come up with something clean that web developers and browser vendors can agree on?
As for using a fallback font that closely matches to minimize the impact of the switch over, how realistic is that? In the demo I felt the fallback font looked very different from the final font (in weight, style and size) and I'm wondering if it's because I'm on Android and the author chose fallbacks that only match on their OS?
- alwillis 6y agoAs for using a fallback font that closely matches to minimize the impact of the switch over, how realistic is that? It would a lot more realistic if browsers other than Firefox supported font-size-adjust, which allows the fallback font to mimic the metrics of your primary font. Here's an article from 2010 that describes how it works: https://webdesignernotebook.com/css/the-little-known-font-size-adjust-css3-property/ https://webdesignernotebook.com/css/the-little-known-font-si...