-
-
Notifications
You must be signed in to change notification settings - Fork 18.2k
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
Local Google Fonts #5313
Local Google Fonts #5313
Conversation
is there any cdn option? |
Any option with accessing resources from a remote source before the user gives his consent is legally not allowed. The reason behind this is that a remote service can read and use the requesting IP address which is part of the user's identity. In the case of Google fonts there were quite a lot of law suites last year in Europe, specifically in Germany. This lead for example to the development of the OMGF WordPress plugin that allows to host the used Google fonts locally. |
Can we use this |
Yes, indeed. That works. I added |
After running the |
Indeed, |
src/assets/fonts/SourceSans3/SourceSans3-Light-cyrillic-ext.woff2
Outdated
Show resolved
Hide resolved
I'm going to make some changes to the code. Please don't push anything |
Rolled back package-lock.json Switched npm source-sans Switched to CDN source-sans-pro Switched to CDN source-sans-3 Co-Authored-By: George Lewe <george@lewe.com>
This was a feature request #5296
I also ran into cases where I had to switch to local Google fonts due to European GDPR laws (loading fonts from Google transfers the user's IP address to Google without his consent).
The currently used font Source Sans Pro has been updated and is now named "Source Sans 3". I downloaded the woff2 files for weights 300, 400 and 700 (normal and italic) in cyrillic, cyrillic-ext, greek, greek-ext, latin, latin-ext and vietnamese versions (as the remote CSS from Google fonts currently provides).
I left the reference to the remote Google fonts in
_head.astro
in case someone wants to use those. However, in that case the user also needs to remove the references to the local font files and re-compile adminlte.css.