Replies: 1 comment
|
Hey. Astro's font handling is specifically designed to be privacy-preserving and GDPR-friendly. Even if you specify a provider like Google, the font is downloaded at build time and self-hosted, so the user never loads anything from a third party server. More info in the Astro fonts guide |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
In the EU, it is actually illegal as per GDPR to make a web site reach out to hosted fonts without user consent.
This is why people serve fonts locally, as a static asset.
However, astro config does not support that and strictly expects a CDN path.
So, something like this will fail:
yielding a parser error:
This forces me to use CSS directly.
Supporting this would be great, but maybe it's an Astro limitation?
All reactions