NEWAI content checker: see which pages read like AI text

Knowledge baseWebsite speed

Self-host Google Fonts

To self-host a Google font, you download its woff2 files, put them on your own server, point an @font-face rule at them and delete the link to fonts.googleapis.com. In WordPress, a theme setting or a plugin does it. Visitors see the same font, sooner on a slow mobile connection, and Google no longer gets their IP addresses from your fonts.

Updated Oct 30, 20264 min read

Is self-hosting faster than Google Fonts?

Yes on a mobile connection; on fast wifi it makes no difference. A test on marketingtracer.com on October 29, 2026 loaded one article page in two versions: with its own copy of the Geist font, and with Google's embed code for that same font. Headless Chrome, a phone-sized screen, 15 loads each, medians:

ConnectionText shows, own serverText shows, GoogleFont loaded, own serverFont loaded, Google
Fast line (no throttling)92 ms84 ms120 ms132 ms
Fast 4G136 ms232 ms346 ms472 ms
Slow 4G132 ms636 ms1,035 ms1,582 ms

"Text shows" is the First Contentful Paint, here also the Largest Contentful Paint.

It's faster, on the train anyway, but there's a more important advantage. With Google Fonts you load the fonts through an external stylesheet, so you don't know in advance where the font files come from. That means you can never preload them to prevent the flash of unstyled text.

Google's stylesheet sits on another server, and the browser won't draw the page until it has it. Your own font starts loading with the page (the preload below).

Visitors don't bring the font along from other sites any more: browsers keep one cache per site, and Google's FAQ says that benefit "is no longer true". Two of the downsides it names are fair: you get the whole font instead of pieces, and you update it yourself. One page in a lab, mind you; a real phone, if anything, pays more for Google's two extra connections.

Is Google Fonts a GDPR problem?

It can be in the EU. In January 2022 a Munich court found that a site loading Google Fonts from Google passed a visitor's IP address to Google without consent, and awarded €100 in damages. Google confirms each font request sends the visitor's IP address; with a self-hosted font it "does not receive any kind of data related to the visits to the website".

Download the font files

Use google-webfonts-helper. The old herokuapp link gives a 404; the tool now lives at gwfh.mranftl.com (checked October 29, 2026). Pick your font on the left, then:

  1. Select charsets: latin, plus latin-ext only if your language needs extra letters.
  2. Select styles: only the weights you use, say regular and 700.
  3. Copy CSS: keep "Modern Browsers" (woff2 only) and set "Customize folder prefix" to /fonts/; the default ../fonts/ is relative to the CSS file.
  4. Download files: a zip like open-sans-v44-latin.zip, one .woff2 per style.
google-webfonts-helper with Open Sans selected: latin, regular, Modern Browsers, the CSS and the download

A variable font (Inter, Geist) is where the helper falls short: it gives one file per weight, and variable support is still an open issue. Open https://fonts.googleapis.com/css2?family=Inter:wght@100..900 in your browser instead and download the woff2 from the block marked latin. In a build pipeline, npm install @fontsource-variable/inter does the same.

License-wise it's fine: most Google Fonts use the SIL Open Font License, which allows self-hosting.

Upload the files and add @font-face

Put the files in a /fonts/ folder on your server and give each one a rule in your CSS. For Open Sans regular, the helper writes this (minus its comments):

@font-face {
  font-display: swap;
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  src: url('/fonts/open-sans-v44-latin-regular.woff2') format('woff2');
}

Woff2 alone is enough: every current browser reads it, and Internet Explorer retired in June 2022. With swap, a fallback font shows until yours arrives. Webfont loading strategies says when optional is better.

Remove the Google Fonts link and preload one font

Delete the <link> to fonts.googleapis.com, the two preconnects to fonts.googleapis.com and fonts.gstatic.com, and any @import url(https://fonts.googleapis.com/...) in your CSS. Then preload the font of your main text:

<link rel="preload" href="/fonts/open-sans-v44-latin-regular.woff2" as="font" type="font/woff2" crossorigin>

Preload only what shows above the fold: usually one font, two at most. Keep crossorigin even on your own domain, or the browser downloads the font twice.

Self-hosting Google Fonts in WordPress

Check your theme first: Kadence has Load Google Fonts Locally under Customizer > General > Performance. Otherwise a plugin downloads the fonts and rewrites the link: OMGF (300,000+ active installs) or Local Google Fonts (100,000+). A block theme may need neither, because the Font Library of WordPress 6.5 stores an installed Google font on your own server.

Check that no request goes to Google

In Chrome, open DevTools (Ctrl+Shift+I, Cmd+Option+I on a Mac), go to Network, click the Font filter and reload. Every font should come from your own domain, none from fonts.gstatic.com. Then switch back to All and type "google" in the filter box to catch a stylesheet from fonts.googleapis.com.

The font requests from Chrome DevTools' Network tab: every font from the site's own domain, none from Google

Don't stop at the home page: a form plugin, a map or a cookie banner can bring Google Fonts back on one template, so check a few templates per client site. Fonts are one small speed item in a site audit.

Keep reading

Free 14-day trial

MarketingTracer smart A.I. tool shows you what you need to rank. Then we'll help you get it done.

  • No credit card required
  • No installation needed
  • No strings attached
Start your 14-day trial