Web fonts in 2026 — self-hosting vs Google Fonts, font-display, subsetting, variable fonts (performance + GDPR)

Fonts look innocent until they wreck your LCP score and land you a GDPR fine. The Google Fonts CDN is the default in 50% of WP themes — and most developers don’t even know that it has been legally questionable in the EU since 2022. This is a guide to serving fonts properly in 2026.

Three options for web fonts #

  1. Self-hosted fonts — files on your own server. The most control and the best GDPR position.
  2. Google Fonts (fonts.googleapis.com) — Google serves them. The classic default, but a GDPR risk.
  3. Bunny Fonts or Fontshare — privacy-friendly alternatives.

Performance impact #

Fonts block text rendering. A poor font setup = the difference between a 1.5s and a 4s LCP.

  • The browser waits for the font file before it shows any text (FOIT = Flash of Invisible Text), unless you use font-display: swap.
  • 2-4 font weights per family = 200-800KB of extra bytes.
  • An external font CDN adds a DNS lookup + TLS handshake (200-500ms).

Google Fonts and GDPR — what happened #

In 2022 a German court (LG München) ruled that embedding Google Fonts through Google’s CDN without user consent = a breach of GDPR, because Google receives the visitor’s IP address without a legal basis. The fine: 100 EUR.

Since then: thousands of Cease & Desist letters from German private individuals/bogus lawyers to sites that still use Google Fonts through the CDN. Most of them are bluffing, but the risk is real, and CNIL (FR) and other DPAs have backed the German position.

Solution: self-host, or use a privacy-friendly CDN.

Self-hosting Google Fonts — how #

Method 1: google-webfonts-helper #

  1. Go to gwfh.mranftl.com (google-webfonts-helper).
  2. Search for a font (e.g. "Inter").
  3. Choose the weights (400, 600, 700 are usually enough).
  4. Choose the charset (latin + latin-ext for Croatian).
  5. Download the zip.
  6. Upload it to wp-content/themes/your-theme/fonts/.
  7. Copy the CSS @font-face block and paste it into style.css.

Method 2: WordPress plugin #

  • OMGF | Host Webfonts Local — the most popular, automatic.
  • Disable and Remove Google Fonts — the nuclear option, removes all Google Fonts calls.

The plugin downloads the fonts, hosts them locally and replaces all the Google URLs. Set up in 5 minutes.

Method 3: Bunny Fonts #

Bunny Fonts is a 1:1 drop-in replacement for Google Fonts, with the same API, and GDPR-friendly (served from the EU, no tracking). Change fonts.googleapis.com → fonts.bunny.net and you’re done.

<link href="https://fonts.bunny.net/css?family=Inter:400,600,700" rel="stylesheet">

font-display: swap #

Without it, the browser hides the text until the font has loaded. With it, the browser shows the text straight away in a fallback font and swaps it when the web font arrives (FOUT = Flash of Unstyled Text).

@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;  /* <-- this */
}

Values:

  • auto (default) — the browser decides, usually FOIT.
  • block — invisible for up to 3s, then the fallback.
  • swap — the fallback straight away, swapped when the font arrives. Recommended for content.
  • fallback — a compromise: invisible for 100ms, the fallback for up to 3s, then swap.
  • optional — the fallback, swapped only if the font arrives quickly. The smallest layout shift.

Preloading critical fonts #

If you definitely need a particular font (logo, headline), preload it in the <head>:

<link rel="preload" href="https://wmd.hr/fonts/inter-700.woff2" as="font" type="font/woff2" crossorigin>

The browser downloads it in parallel with other resources. Faster rendering.

WOFF2 format #

In 2026 use ONLY WOFF2 — the best compression and 100% browser support. The older formats (WOFF, TTF, EOT) are no longer needed.

Subsetting — fewer characters, smaller file #

The full Inter font has ~600 characters (latin, latin-ext, vietnamese, cyrillic) = 50KB. Your site only uses latin + latin-ext = subset it → 15KB.

Tools: the fonttools Python package, or google-webfonts-helper, which does it automatically by charset.

For a Croatian site, latin + latin-ext is enough (latin-ext contains č, ć, š, đ, ž).

Variable fonts #

Variable font = one file, many weights/styles. Inter Variable = 200KB with every weight (100-900) + italics, instead of 8 separate files × 50KB = 400KB.

@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-variable.woff2') format('woff2-variations');
  font-weight: 100 900;  /* range */
}

In your CSS you can then use any weight: font-weight: 437;. Variable Latih, Inter, Recursive, Fraunces — all available.

System fonts — the fastest #

If your design allows it, use a system font stack — 0 bytes, instant rendering, a native look:

font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

It shows San Francisco on macOS, Segoe UI on Windows and Roboto on Android. Very fast, and it looks good.

Custom fonts vs Adobe Fonts #

Adobe Fonts (formerly Typekit) — high-quality professional fonts included in a Creative Cloud subscription. Loaded through use.typekit.net.

GDPR: a similar problem to Google Fonts (Adobe is a US company). There have been fewer problems, because Adobe has an EU DPA and an optional EU CDN region.

Icon fonts vs SVG icons #

Font Awesome and the like = a legacy approach. Large, not tree-shakable, render-blocking.

A better approach: SVG icons inline or as a sprite (e.g. Lucide, Heroicons, Tabler Icons). Tree-shakable, a smaller bundle, accessibility-friendly.

Performance audit — what to test #

  • PageSpeed Insights → "Ensure text remains visible during webfont load" → means you don’t have font-display swap.
  • Network tab → how many font files, and their total size.
  • Lighthouse Diagnostics → "Reduce unused CSS" often includes font weights you don’t use.
  • Web Vitals → CLS (Cumulative Layout Shift) — fonts that load late shift the layout.

Anti-CLS tricks #

Fonts of different sizes shift the layout when they swap. Solutions:

  • size-adjust in @font-face — matches the metrics of the fallback font.
  • ascent-override, descent-override, line-gap-override — fine-tuning.
  • Tool: Fallback Font Generator — generates optimal overrides for any pair of fonts.

Fonts on WMD hosting #

Self-hosted fonts are ordinary files, so they sit on your hosting alongside the rest of your site and are included in the backup four times a day. You can see the plans on the hosting page.

FAQ #

Is Google Fonts allowed in Croatia? A legal grey area — AZOP (the Croatian Personal Data Protection Agency) hasn’t ruled the way the German court did, but GDPR applies. Self-hosting is safer.

Is Bunny Fonts safe for GDPR? Yes. EU-based (Slovenia), doesn’t log IP addresses, an explicit privacy policy.

How do I check whether a site uses the Google Fonts CDN? Open the DevTools Network tab and filter by "font". If you see fonts.googleapis.com or fonts.gstatic.com → it uses Google’s CDN.

Variable fonts in older browsers? Edge 79+, Chrome 62+, Firefox 62+ and Safari 11+ support them. Older browsers ignore them and use the fallback. 99%+ of users are fine.

Adobe Fonts or Google Fonts? Adobe has a better selection of professional fonts, but you pay for a subscription. Google is free + open source. For most sites, a Google subset → self-hosted is the best option.

Need help with fonts? Get in touch through the contact form.