How to Self-Host Google Fonts in WordPress for GDPR Compliance & Faster LCP
1. Why External Font CDNs Hurt Both Speed and European Compliance
Linking directly to fonts.googleapis.com forces every visitor’s browser to perform an extra DNS lookup and TLS handshake to Google’s servers before downloading a single glyph—and transmits the visitor’s IP address to a third party, which European data protection courts have repeatedly flagged under GDPR.
Self-hosting compressed .woff2 font files inside /wp-content/themes/your-theme/assets/fonts/ solves both issues permanently: fonts serve over your existing HTTP/2 or HTTP/3 connection alongside your CSS with zero external round-trips.

@font-face {
font-family: 'Space Grotesk';
src: url('../fonts/space-grotesk-latin.woff2') format('woff2');
font-weight: 400 700;
font-display: swap;
}
2. Preloading Only What Renders Above the Fold
Do not preload six font weights. Identify the single primary display or body WOFF2 file needed for your hero headline and add one targeted <link rel="preload" as="font" type="font/woff2" crossorigin> tag in wp_head.
3. Subsetting & Variable Font Sizing Best Practices
A full multi-script variable font file can easily exceed 350KB. If your WordPress site publishes strictly in English or Latin-script languages, subset your WOFF2 files to the Latin character range—often shrinking a 320KB variable font down to 28–45KB with zero visual difference.
Always verify that your theme’s fonts.css points to relative URLs or clean HTTPS theme URIs so mixed-content warnings never block font loading on SSL domains.
FAQ — Should I use Google Fonts variable files or static weights? If you use 3+ weights of the same family, a single subsetted variable WOFF2 is usually smaller than loading 3–4 separate static files.