Bunny fonts, a drop-in GDPR safe replacement for Google fonts

Using Google fonts in a theme violates GDPR, fingerprinting information is provided to Google when requesting the fonts.

The Google Fonts API logs the details of the HTTP request, which includes the timestamp, requested URL, and all HTTP headers (including referrer and user agent string) provided in connection with the use of our CSS API.

Not good, I use Bunny’s font library instead.

Bunny CDN provides free GDPR-safe web fonts at Bunny Fonts | Explore Faster & GDPR friendly Fonts

They are drop-in, simply swap https://fonts.bunny.net/css in place of https://fonts.googleapis.com/css and you’re good.

Also check for any pre-connect in your <head>
<link rel="preconnect" href="https://fonts.gstatic.com/">

and switch to
<link rel="preconnect" href="https://fonts.bunny.net">

Here’s a detailed background on the GDPR situation…

Google Fonts & GDPR – How You Can Stay Compliant

6 Likes

My personal favourite:

Makes it super easy to self-host Google fonts, meaning no external requests at all :tada:

5 Likes

@jannis Smooth, all fonts local.

1 Like

Not google fonts but fonts related, here’s another good resource:

3 Likes

Oh, I see what he did there, took matching fonts across macOS, Linux, Windows, and Android - the CSS declaration will get a hit depending on platform. No downloads, no layout shifts. Ingenious.

1 Like