Update the Noto fonts
In tor-browser#30589 (closed) we found a list of fonts that we'd need to support more scripts in Windows's TBB, plus 1 for Linux, and possibly serif fonts in both the platforms (for serif, I'd need to coordinate with l10n team, and see what's the increase on the installer size).
In addition to that, I'd like to switch to hinted fonts (as recommended by Google in the readme).
But we have a problem: we are using an old version of Noto fonts, which doesn't contain all the fonts we'd like to use.
After #40186 (closed), we started downloading a zip with Noto fonts from GitHub.
I fear we'll have to roll this patch back: the produced archive is still much lighter than the whole git repository... but all the downloads I've done were corrupted eventually (and their hash changed). I don't know whether this is a problem of my connection, or GitHub's problem.
--depth=1 may help:
git clone --depth 1 https://github.com/googlefonts/noto-fonts.git Cloning into 'noto-fonts'... remote: Enumerating objects: 13781, done. remote: Counting objects: 100% (13781/13781), done. remote: Compressing objects: 100% (9583/9583), done. remote: Total 13781 (delta 6512), reused 8069 (delta 4186), pack-reused 0 Receiving objects: 100% (13781/13781), 656.28 MiB | 6.13 MiB/s, done. Resolving deltas: 100% (6512/6512), done. Updating files: 100% (13004/13004), done. du -hs noto-fonts 2,6G noto-fonts
Which is still less than the 6GB.
However, this was
HEAD, but according to this StackOverflow answer, there is a trick to do also with other commits.
I don't know if RBM supports it, though.
The other alternatives I see are:
- downloading the fonts using GitHub's raw link (and bundle a list of known
sha256sums for that commit - but this possibly needs to be an online container)
- prepare a package and host it somewhere (it could be either a
git archiveoutput, or a package already filtered to contain only the fonts we want. From what I understood, generally we'd prefer to avoid that, and it's increased work for updates)
- look for other packages, hosted for example on Google fonts
- switch back to unhinted fonts, and download only the fonts that are missing from the zip