Local Google Fonts

A├ž─▒klama

Host your used Google fonts on your server and make your site more GDPR compliant ­čĺ».

About 50 mio* sites use Google Fonts and in January 2022 a German court has ruled that using Google Fonts is a violation of EuropeÔÇÖs GDPR (General Data Protection Regulation).

more on wptavern.com

Ekran G├Âr├╝nt├╝leri

Y├╝kleme

  1. Upload the entire local-google-fonts folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Go to Settings => Google Fonts and decide which fonts should get loaded locally

SSS

Will this load Google Fonts automatically?

Yes, if you check the option to load fonts automatically. Otherwise each font set must be manually triggered.

Is it Legal to Self-Host Google Fonts?

Yes. The open source fonts from Google Fonts are published under a licenses that allow you to use them on any website, no matter if itÔÇÖs commercial or personal.

How to check if my site is loading Google Fonts?

It’s easy to check if your site is loading fonts from a third party source (check 2nd screenshot above):

  1. Open the dev tools (Cmd + Opt + I on Mac or F12, or Ctrl + Shift + I on Windows)
  2. Go to the Network tab and select the Fonts type
  3. Reload your page to see all fonts loaded on your site.
  4. Check the Domain column if it contains domains from a third party (Google is fonts.gstatic.com)

If you host your fonts locally with Local Google Fonts there should be no fonts loaded from the Google servers.

My fonts do not show up on the settings page, what can I do?

Fonts are discovered once they are used. Try to browse your front end first and get back to the settings page.

My fonts are not replaced, what can I do?

The plugin currently only checks fonts embedded via wp_enqueue_style if you use Google fonts via @import you have to change that first.

The Divi theme still loads a Google font?

The Divi theme has a custom implementation of Google Fonts. To use LGF with Divi disable Improve Google Fonts Loading on the Performance Settings page of Divi.

Why are some characters displayed in the fallback font?

You may have loaded a subset which doesn’t included required characters. Check additional subsets on the settings page and reload your font.

─░ncelemeler

20 Eyl├╝l 2022
Just the thing I needed. Works without any problems and saved me so much time for changing all client projects. Many thanks!
15 Eyl├╝l 2022
This plugin is easy to use and works really well. It takes a moment / a few page views to detect the fonts that are being used on the site and then automatically downloads them and changes the font loading so that they're loaded from your webserver.
25 incelemeyi oku

Katk─▒da Bulunanlar ve Geli┼čtiriciler

“Local Google Fonts” a├ž─▒k kaynakl─▒ yaz─▒l─▒md─▒r. A┼ča─č─▒daki ki┼čiler bu eklentiye katk─▒da bulunmu┼člard─▒r.

Katk─▒da bulunanlar

“Local Google Fonts” 5 dile ├ževrildi. Katk─▒da bulunduklar─▒ i├žin ├ževirmenlere te┼čekk├╝rler.

“Local Google Fonts” eklentisini dilinize ├ževirin.

Geli┼čtirmeyle ilgilenir misiniz?

Kodu g├Âr├╝nt├╝le, SVN deposuna g├Âz at veya RSS ile geli┼čtirme g├╝nl├╝─č├╝ne abone ol.

De─či┼čiklik Kayd─▒

0.15

  • using custom mirror to prevent down times

0.14

  • added info if https://google-webfonts-helper.herokuapp.com/ is down

0.13

  • improved: better explanations on errors.
  • improved: Higher propriety for wp_resource_hints to catch them all. Fixes #8
  • implemented an alias method for no longer supported fonts.
  • fixed: Syntax error on older PHP versions

0.12

  • Do not handle fonts sources with more than 30 families (why would you need that?)
  • Add option to choose subsets for each font family
  • Disable functionality in the customizer

0.11

  • fixed: problem on customizer in Neve theme
  • fixed wrong domain on translations
  • update F.A.Q. for DIVI theme

0.10

  • fixed: rending issue on some fonts (please reload fonts if you use one of these: “exo-2”, “inter”, “jost” or “montserrat”)
  • fixed: some styles are not recognized and therefore not loaded.
  • improved: info about loaded font files on the admin screen
  • added timestamp to loaded font files to prevent cached fonts get loaded.

0.9

  • new: options to load fonts automatically

0.8

  • updated required WP version to 4.6
  • remove Text Domain header
  • added missing translatable strings

0.7

  • better handling of multiple “family” arguments in the URL

0.6

  • loading all variants if none explicit are requested
  • cache API requests
  • respect font-display
  • removes DNS prefetch and preconnect to Google server from page header

0.5

  • added option to flush everything

0.4

  • you may have to reload fonts so please check the settings page
  • improved handling of fonts
  • only loading required font files
  • supports now different types of variant declarations
  • add variants to list only if available in the source
  • added some css to improve settings page
  • you may have to reload fonts so please check the settings page

0.3

  • add explanation info on settings page

0.2

  • show info when no font is found
  • better handling of translated strings

0.1

  • initial release