CRAiD
CRAiD Quick Guide · Compliance & Web
For organizations with elevated compliance requirements (GDPR, BSI Baseline Protection, NIS2, NATO supplier status, VS-NfD environment).
Embedding Google Fonts via fonts.googleapis.com transmits visitors' IP address, user agent, and referrer to Google in the USA – unlawful under GDPR (Munich Regional Court, January 2022) and incompatible with data-egress restrictions in security-critical industries.
Self-host the fonts – the Open Font License permits it, the external request is eliminated, and performance usually even improves.
Use google-webfonts-helper – more convenient than fonts.google.com directly, because the tool generates ready-to-use @font-face snippets.
latin is usually enough; add latin-ext for German/European contentwoff2) as the formatCreate a folder in your project, e.g.:
/assets/fonts/inter/
inter-v13-latin-regular.woff2
inter-v13-latin-500.woff2
inter-v13-latin-700.woff2
Paste the snippet generated by gwfh and adjust the paths:
@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url('/assets/fonts/inter/inter-v13-latin-regular.woff2') format('woff2');
}
font-display: swap ensures text is visible immediately while the font is loading.
Commonly overlooked spots to check:
<link href="https://fonts.googleapis.com/..."> in HTML@import url('https://fonts.googleapis.com/...') in CSS filesfont and google: must show zero hits on fonts.googleapis.com or fonts.gstatic.comMake the rule technically binding – both an audit artifact and protection against accidentally reintroduced Google requests:
Content-Security-Policy: font-src 'self'; style-src 'self'
The browser will then block any external font load attempt, even if a plugin or theme silently re-references Google.
googleapis.com or gstatic.comfont-src 'self' is activeSelf-hosted fonts are usually faster than the CDN variant – a round trip to a foreign host, including DNS, TLS, and HTTP/2 connection setup, is avoided. With a preload hint for the most important font, you can further improve Largest Contentful Paint:
<link rel="preload" href="/assets/fonts/inter/inter-v13-latin-regular.woff2"
as="font" type="font/woff2" crossorigin>
Google Fonts may be used – just not delivered by Google. The fonts are freely licensed; the compliance risk is the third-party request, not the font itself.