-
Notifications
You must be signed in to change notification settings - Fork 831
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Should we vendor fonts? #4602
Comments
Could this be included in |
It's not external data that changes, so I would be against that. |
I would also like to consider the option for pulling in the fonts with a script on the user side. It would be a significant volume of data and having that in the repo would mean every contributor would locally store a complete history of the font files (which would likely quickly grow to several hundred megabytes). And as i see it there is not really a gain in having the fonts in the repo per se. IMO it should be a separate script that downloads a certain version of the fonts (verified by us to work) as necessary (when the fonts are locally missing or outdated). |
Out of #4490 I investigated the versions of the fonts we use, and what systems have
Most Debian-derived systems have Noto fonts from 2020. Since then, there have been updates to noto, with bug fixes, including bold support diacritics in NotoNaskhArabic.
Even if we got Debian to update the fonts-noto package today, it wouldn't be in a Ubuntu LTS release until 2024, and wouldn't be in backports until late 2022
Vendoring the fonts would involve writing a script that copies them from the noto-fonts repo into a ./fonts directory, and adding
font-directory: url('fonts');
to fonts.mssThis would add an estimated 18MB for all NotoSans Regular fonts1, 5.5MB for NotoSans bold2, 52MB for hanazono, and 14MB for unifont.
Advantages
Disadvantages
Footnotes
find noto-fonts/unhinted/ -name 'NotoSans*-Regular.ttf' -type f | xargs du -hc --apparent-size
↩find noto-fonts/unhinted/ -name 'NotoSans*-Bold.ttf' -type f | xargs du -hc --apparent-size
↩The text was updated successfully, but these errors were encountered: