#55985 - Remove Google fonts from Twenty Seventeen#2814
#55985 - Remove Google fonts from Twenty Seventeen#2814Luehrsen wants to merge 13 commits intoWordPress:trunkfrom
Conversation
|
Hi @Luehrsen! 👋 Thank you for your contribution to WordPress! 💖 It looks like this is your first pull request to No one monitors this repository for new pull requests. Pull requests must be attached to a Trac ticket to be considered for inclusion in WordPress Core. To attach a pull request to a Trac ticket, please include the ticket's full URL in your pull request description. Pull requests are never merged on GitHub. The WordPress codebase continues to be managed through the SVN repository that this GitHub repository mirrors. Please feel free to open pull requests to work on any contribution you are making. More information about how GitHub pull requests can be used to contribute to WordPress can be found in this blog post. Please include automated tests. Including tests in your pull request is one way to help your patch be considered faster. To learn about WordPress' test suites, visit the Automated Testing page in the handbook. If you have not had a chance, please review the Contribute with Code page in the WordPress Core Handbook. The Developer Hub also documents the various coding standards that are followed:
Thank you, |
This reverts commit bf8871f.
|
The new On the github repository for the Google Webfonts Helper there is an open issue about problems arising from using such declarations. To avoid these problems, I would suggest to either use the "smiley" hack as mentioned here or drop the |
I think dropping local is the way to go. |
jffng
left a comment
There was a problem hiding this comment.
I think fonts typically come with a license that should be bundled as well, for example https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-content/themes/twentytwentytwo/assets/fonts/ibm-plex/LICENSE.txt
|
I see this PR includes the font files in the repo, but installing them via NPM is also an option: https://fontsource.org/ |
This is how I would do it today. But I think the overhead in terms of packages and build tools is a little too much for the scope of what we want to achieve here. I don't think introducing a new package and build process for a legacy polyfill is wise here. We can always go back and optimise if we wish to do that. |
Why not using the real local name |
Apparently there were cases with colliding font names. Originally Google Fonts used to add the Another possible reason is that there is no control over which version of the font is loaded from the user's computer. The user could have a version with a limited character set or even incomplete variations installed. |
|
Based on a discussion with @2ndkauboy I've rewritten the implementation and added the unicode-range selector. (#2823 (comment)) The downside is, that the font.css is really complex now and we have a lot of files. But the upside is, that character subsets get automatically loaded when needed. Bildschirmaufnahme.2022-06-19.um.17.01.34.mov |
That seems like a great solution! |
|
I believe locally hosted fonts are the best way forward, but this is really interesting: |
|
IMHO not without asking for consent first.
… Am 21.06.2022 um 16:01 schrieb Bernhard Kau ***@***.***>:
I believe locally hosted fonts are the best way forward, but this is really interesting:
https://twitter.com/dimensionmedia/status/1538912055381463041
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.
|
I think in terms of GDPR compliance it is OK without consent, as no personal data is sent to any non-EU entity. But still I think for the default themes we should really go with local fonts. |
This pull request aims to remove google webfont requests from core themes and serve needed fonts locally.
Trac ticket: https://core.trac.wordpress.org/ticket/55985#ticket
This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.