News for hackers. Stuff that matters.
Re:Font loading on the web by Gorgor on Monday February 01, 2021 @12:42PM (#25991000)
I had not known about 'font-display: optional' before. Now I wish more sites used it because there has been so many times where I started reading something on my phone with slow internet when it had not fully loaded yet. It’s really annoying to see the page jump around a while later after font loading finished and you realize that you just wasted data on nothing.

In my opinion, 95 % of websites should just use system fonts. They’re good enough for almost every need really.

Re:Font loading on the web by ksec on Monday February 01, 2021 @12:46PM (#25991067)
> 95 % of websites should just use system fonts.

Although I do wish there are a few standard font that is shipped across all browser. Sometimes I want the website to appear exactly the same on all System.

Re:Font loading on the web by jfk13 on Monday February 01, 2021 @01:02PM (#25991300)
The site should appear exactly the same in a fullscreen browser on a 27" desktop monitor, and on an original iPhone? That's rarely a useful goal.

For a page that really needs to look "exactly the same" everywhere it's viewed, maybe PDF is a better choice than HTML+CSS.

Re:Font loading on the web by sudosteph on Monday February 01, 2021 @01:18PM (#25991511)
See my comment to the parent for an example of a site that needs to look the same (or rather - a portion of site - an HTML Canvas) that has to look the same on every device and which needs a specific font loaded to work properly. For my case, having a font that was guaranteed the same in every browser would have been very nice, and I would have gladly used that if it worked and fit the theme closely enough.
Re:Font loading on the web by postalrat on Monday February 01, 2021 @01:21PM (#25991547)
Are you a designer?

If you want your document to look the same on all systems create an image.

Re:Font loading on the web by kgin on Monday February 01, 2021 @01:24PM (#25991591)
That's definitely the correct move given how browsers work, but I don't think it's wrong to wish for font consistency.
Re:Font loading on the web by giantrobot on Monday February 01, 2021 @02:38PM (#25992689)
Even if there was consistency in the actual fonts their rendering depends on the platform/engine or even just the device settings. If you want precise display metrics you should use an image (SVG counts). If I've got large text enabled on my phone we could have the same exact device and my display metrics won't match yours.
Re:Font loading on the web by SilasX on Monday February 01, 2021 @03:23PM (#25993324)
Nice, but it's more important for my browser not to leak information about me via what fonts I needed to download.

Also, it gets really annoying when sites demand that my desktop look like my mobile phone but blown up really big. Twitter's already that way, and the Facebook redesign did the same thing.

Re:Font loading on the web by marcthe12 on Monday February 01, 2021 @11:21PM (#25997398)
There are a few metric compatible fonts used by stuff like pdf. and so on. I believe an alias for these fonts are needed. Obviously add an emoji and UI font. that will be the best
Re:Font loading on the web by robertoandred on Monday February 01, 2021 @04:19PM (#25994122)
There are a few standard fonts, but no one wants to use them.
Re:Font loading on the web by pvorb on Tuesday February 02, 2021 @12:37AM (#25997760)
And with smartphones, they're no longer installed on every system. I really wish that Chrome and probably other browsers would install a set of fonts from Google Fonts. I don't see a reason why this shouldn't be possible. That's what most sites use, anyway. I guess it's related to Google being able to track usage of these fonts.
Re:Font loading on the web by wtetzner on Monday February 01, 2021 @01:11PM (#25991435)
Is it possible to configure your browser to treat every site as if it used 'font-display: optional'? I'd love to be able to do that. Seems like it should be up to the user to decide, not the web developer.
Re:Font loading on the web by vestrigi on Monday February 01, 2021 @06:51PM (#25995776)
Browsers typically let you define a user stylesheet somewhere in the settings. I tried it in Safari with a simple `body {@font-face {font-display: optional;}}` but I could't verify if it has any effects. I think it is difficult because @font-face will be evaluated differently than usual css, say `color: red`. Maybe someone who has a better understanding of css could try it...
Re:Font loading on the web by mrob on Monday February 01, 2021 @02:58PM (#25992952)
uBlock Origin lets you block/allow web fonts globally or per site.