News for hackers. Stuff that matters.
Re:Faster web fonts by yoz-y on Sunday May 16, 2021 @02:53AM (#27171765)
Yeah, no. Until the standards give us more fonts with better metrics (like a guarantee that a default sans, serif and fixed-width fonts come from the same family), the default fonts will look quite crummy.

I wish there was some font cache that could be shared between all sites, so once you downloaded a font it would be available for all. But I guess due to copyright it will never happen.

Re:Faster web fonts by subsection1h on Sunday May 16, 2021 @09:09AM (#27173462)
First, my default fonts look great because I chose them and my preferences are superior to everyone else's.

Second, I use Debian and I have a fonts.conf that's hundreds of lines long, including dozens of lines of hinting settings because I prefer that some fonts use hintfull and others use hintslight. I don't have hinting settings for every font that exists, only fonts I installed, so when a site uses a web font, there is no dedicated hinting setting for it in my fonts.conf, and so it almost always looks worse than my default font.

Re:Faster web fonts by majewsky on Sunday May 16, 2021 @02:07PM (#27175689)
That's cool, but you do realize you're the 0.001%, right?
Re:Faster web fonts by swiley on Sunday May 16, 2021 @05:23AM (#27172411)
Meh. I'll take "looking crummy" over waiting 30 seconds to read someone's ad-filled essay on whatever.
Re:Faster web fonts by nicbou on Sunday May 16, 2021 @05:52AM (#27172522)
Fonts are 20 kb each. Even on the slowest of mobile connections, they hardly make a difference. If you're waiting 30 seconds, fonts are not the bottleneck.
Re:Faster web fonts by maccard on Sunday May 16, 2021 @08:20AM (#27173172)
If you have a few fonts, referenced by an external css file, on a page that has a bunch of images, the delay is a couple of seconds on a mobile connection. It's not just the download time for 20kb, it's the servers response time (you _are_ hosting it yourself right?) × number of resources requested.

I'd rather just view the page with the default fonts rather than wait 5-6 secondsfor the minimally different sans serif font that you've chosen for one paragraph that blocks the entire page render.

Re:Faster web fonts by nicbou on Sunday May 16, 2021 @02:53PM (#27176035)
Even on the absolute slowest connection, it takes less than that for my 4 font variants to load.
Re:Faster web fonts by swiley on Sunday May 16, 2021 @09:07PM (#27178961)
You might be able to load the fonts quickly on their own but if they're requested by something else that's dynamically loaded the (serialized) round trips can add up fast, especially on high latency connections like satellite.
Re:Faster web fonts by nicbou on Monday May 17, 2021 @03:08AM (#27180773)
"But think of the satellite connections" isn't really a meaningful consideration in a world where we don't support IE and most websites are megabytes in side. Mine is fast enough for people stuck in the underground, which is a far more significant demographic for me.

Hypotheticals aside, the fonts load sufficiently fast in a single round trip (two if HTTP2 push isn't supported), and do not block rendering.

Re:Faster web fonts by manigandham on Sunday May 16, 2021 @04:07AM (#27172041)
That font cache is just using 3rd-party hosted fonts like Google Fonts.
Re:Faster web fonts by Zardoz84 on Sunday May 16, 2021 @05:59AM (#27172550)
if you read the article, you will know that it works anymore like a "font cache".
Re:Faster web fonts by Zardoz84 on Sunday May 16, 2021 @06:00AM (#27172553)
*don't work anymore
Re:Faster web fonts by leephillips on Sunday May 16, 2021 @06:38PM (#27177731)
*doesn’t work anymore