News for hackers. Stuff that matters.
Re:Self-host your fonts for better performance by jakub_g on Friday December 04, 2020 @07:20AM (#25301476)
I'm not an expert but:

- 1. Copyright (though many fonts are free, true)

- 2. Everyone uses a different font (just like everyone uses a slightly different version jquery) so cache hit would be pretty small IMO. Do you really want a browser to be gigabytes large? Especially on mobile it's not viable

Maybe if browsers standardized on shipping, say, 20 carefully chosen fonts (not necessarily the most popular ones, just a good variety of different types of fonts), the smaller websites would follow and use them; but I think any major brand likes to distinguish themselves and have a custom unique font.

Re:Self-host your fonts for better performance by ClumsyPilot on Friday December 04, 2020 @08:42AM (#25302115)
> "Do you really want a browser to be gigabytes large? Especially on mobile it's not viable"

Absolutely, i would rather give the browser 50 GB even on my phone over paying my mobile operator for downloading the same data over and over again.

And it wouldn't take anywhere near that much, I am sure 80% of most used fonts are only a couple dozen, that wouldn't tale gigabytes

Re:Self-host your fonts for better performance by cj on Friday December 04, 2020 @01:06PM (#25305624)
It also doesn't have to be a binary proposition.

For example, Google Maps by default doesn't load maps of the entire world when you install it. However, it does let you opt-in to pre-downloading specific areas that you frequently travel.

Browsers could do the same by simply adding an opt-in to download / cache common assets like fonts, jquery, etc.

Re:Self-host your fonts for better performance by rovr138 on Saturday December 05, 2020 @02:15PM (#25317393)
From a privacy point of view,

Not embedding all of them would allow tracking. Caching all web fonts would allow tracking.

The solution is embedding all the popular ones so everyone has them and it can't be used as a signal.

Re:Self-host your fonts for better performance by sergeykish on Saturday December 05, 2020 @09:47AM (#25314901)
It would be interesting to gather a list. uBlock Origin can disable Web Fonts

https://github.com/gorhill/uBlock/wiki/Per-site-switches#no-...

so it should be possible to log. And given a list it is not hard to download.

Re:Self-host your fonts for better performance by zinekeller on Friday December 04, 2020 @07:36AM (#25301576)
> Maybe if browsers standardized on shipping, say, 20 carefully chosen fonts (not necessarily the most popular ones, just a good variety of different types of fonts), the smaller websites would follow and use them; but I think any major brand likes to distinguish themselves and have a custom unique font.

It may be not really carefully chosen, but didn't Microsoft have done this already? (Core fonts for the Web, https://web.archive.org/web/20020124085641/http://www.micros...). The reason they have discontinued this programme is that it actually costs them some money (as the fonts are not owned by Microsoft.)

Also, how would you cater to non-LGC (Latin, Greek, Cyrillic) users?

Re:Self-host your fonts for better performance by jakub_g on Friday December 04, 2020 @07:49AM (#25301673)
Yep Asian fonts in particular are _huge_. It's a complex topic.
Re:Self-host your fonts for better performance by dubcanada on Friday December 04, 2020 @07:35AM (#25301565)
I mean I’ve said it before but shipping like 20 (montserrat, raleway, open sans, etc) would cover most websites who use Google Fonts.
Re:Self-host your fonts for better performance by jakub_g on Friday December 04, 2020 @07:44AM (#25301628)
You might be right, but the next question is fashion. Will the same fonts be used still in 5 years, or (more likely) the new hotness will arrive? Should the browsers update the list each year? Then some fonts that were available will suddenly be not? Not so great.

Web standards and browser features are generally built for the long term and backward compatibility. I mean, it's not impossible to find a solution, but it's definitely not "let's download some fonts and bundle with the browser, done" kind of problem.

Re:Self-host your fonts for better performance by thrower123 on Friday December 04, 2020 @08:42AM (#25302112)
When you control 70% of the desktop market share, and you are releasing an evergreen browser that updates weekly, if not more frequently, any argument about not being able to stay on top of changes in the environment become rather silly.
Re:Self-host your fonts for better performance by ClumsyPilot on Friday December 04, 2020 @08:44AM (#25302129)
We keep root ssl certificates up to date, surely we can handle a few fonts.
Re:Self-host your fonts for better performance by netheril96 on Friday December 04, 2020 @07:56AM (#25301733)
At least it is not a problem for Google, since it controls both the most popular browse and most popular web font distribution channels.
Re:Self-host your fonts for better performance by flomo on Friday December 04, 2020 @02:27PM (#25306551)
Microsoft's old "core fonts for the web" are still widely in use. (including here on HN.)
Re:Self-host your fonts for better performance by hanspeter on Friday December 04, 2020 @03:15PM (#25307183)
Aside from Arial, which core fonts are still used widely?
Re:Self-host your fonts for better performance by flomo on Saturday December 05, 2020 @01:39AM (#25312371)
Right-click and inspect element.
Re:Self-host your fonts for better performance by jfk13 on Friday December 04, 2020 @09:49AM (#25302780)
Do we really want to invite a couple of browser vendors to set the course of typographic design for the next few decades?
Re:Self-host your fonts for better performance by marcthe12 on Friday December 04, 2020 @08:30AM (#25302012)
I believe already there but maybe a set of categories of fonts like UI, sans, monospace, handwriting could be alias usual for all websites and apps