Local Google Fonts

Beschreibung

Hoste deine verwendeten Google-Schriften auf deinem Server und mache deine Website damit DSGVO-konformer 💯.

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).

mehr auf wptavern.com

Installation

  1. Lade den gesamten Ordner local-google-fonts in das Verzeichnis /wp-content/plugins/ hoch
  2. Aktiviere das Plugin in WordPress im MenĂŒ „Plugins“​
  3. Gehe zu Einstellungen => Google Fonts und entscheide, welche Schriften lokal geladen werden sollen

FAQ

Werden Google Fonts automatisch geladen?

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

Ist es legal, Google Fonts selbst zu hosten?

Ja. Die Open-Source-Schriften von Google Fonts werden unter einer Lizenz veröffentlicht, die es dir erlaubt, sie auf jeder Website zu verwenden, unabhÀngig davon, ob es sich um eine kommerzielle oder private Website handelt.

Wie kann ich ĂŒberprĂŒfen, ob meine Website Google Fonts lĂ€dt?

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. Lade deine Seite neu, um alle auf deiner Website geladenen Schriften zu sehen.
  4. PrĂŒfe die Spalte Domain, ob sie Domains von Dritten enthĂ€lt (Google ist fonts.gstatic.com)

Wenn du deine Schriften lokal mit Local Google Fonts hostest, sollten keine Schriften mehr von den Google-Servern geladen werden.

Meine Schriften werden auf der Einstellungsseite nicht angezeigt, was kann ich tun?

Schriften werden entdeckt, sobald sie verwendet werden. Versuche zunĂ€chst, dein Frontend zu durchsuchen, und kehre dann zur Einstellungsseite zurĂŒck.

Meine Schriften wurden nicht ersetzt, was kann ich tun?

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

Das Divi-Theme lÀdt immer noch eine 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.

Warum wird nur das Schriftformat woff2 geladen?

Woff2 is the successor of the woff format and and offers a 30% average compression gain over the original format. It is also supported by over 96% of browsers (source).

Wie hostet man Schriften, die von Slider Revolution geladen werden?

Slider Revolution verwendet eine eigene Methode zum Laden von Google Fonts, und LGF kann damit nicht umgehen. Slider Revolution hat eine eingebaute Funktion fĂŒr seine Slider.

  1. Gehe zu Slider Revolution
  2. Click on „Global“ in the top navigation
  3. Find the „Fonts“ section and Choose „Cache Fonts Local“ on „Enable Google Fonts download“
  4. Speichere deine Einstellungen.

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.

Rezensionen

24. MĂ€rz 2025
Wir haben das schon eine Weile im Einsatz, heute fĂ€llt mir auf, noch gar nicht bewertet. Deswegen schon mal 5 Sternen, weils still und leise einfach tut was es soll. 😉
8. Januar 2025
It works like a charm. All who got problems getting it working:In settings > Google Fonts, tick the „Load Fonts automatically“ checkbox and click on the „Reload Fonts“ button. Then save the changes. That’s it. You will see in your browsers inspector > Network that the fonts are hosted locally (at least here it is)
21. Oktober 2024
Lors de mes premiers essais, il y a quelques mois, l’extension ne fonctionnait pas. Aujourd’hui elle semble marcher parfaitement. TrĂšs efficace, merci au concepteur !
12. Juli 2024 1 Antwort
Easy Google Fonts with same logo work perfectly. But this plugin useless and unclear why.
Alle 83 Rezensionen lesen

Mitwirkende und Entwickler

„Local Google Fonts“ ist Open-Source-Software. Folgende Menschen haben an diesem Plugin mitgewirkt:

Mitwirkende

„Local Google Fonts“ wurde in 11 Sprachen ĂŒbersetzt. Danke an die Übersetzenden fĂŒr ihre Mitwirkung.

Übersetze „Local Google Fonts“ in deine Sprache.

Interessiert an der Entwicklung?

Durchstöbere den Code, sieh dir das SVN Repository an oder abonniere das Entwicklungsprotokoll per RSS.

Änderungsprotokoll

0.24.0

  • added: option to use relative URLs

0.23.0

  • Update WordPress ‚Tested up to‘ version to 6.7
  • Don’t show admin message when plugin is network-activated

0.22.0

  • fixed: missing $user_agent variable
  • fixed: missing $tmp_file variable

0.21.0

  • fixed: issue downloading fonts with WordPress 6.2 caused by the download_url method

0.20.0

  • make sure files are loaded via https if requested
  • neue Filter lgf_folder_url und lgf_folder
  • always append timestamp to prevent caching

0.19

  • please reload fonts manually if you encounter problems after the update
  • completely rewriting the way fonts are loaded which to drop the need for a third party API and support more (deprecated) fonts.
  • bessere UnterstĂŒtzung fĂŒr Multisite (Dank an @ravanh)
  • the original style sheet is used for better compatibility
  • added Settings link on the plugins list page
  • added button to manually fetch homepage for used fonts
  • only woff2 fonts are now loaded for better subset support
  • removed unused seed variable

0.18

  • do not use remove_query_arg to strip args as it can break some URLs

0.17

  • remove ver query argument from URLs as they are added by WordPress. Please review settings as fonts may have to be reloaded
  • introduced upgrade class for future updates
  • added: welcome message after plugin activation
  • added Codeable banner
  • fixed: PHP warning on missing key

0.16

  • using absolute path to support Google Fonts in Mailster.

0.15

  • using custom mirror to prevent down times

0.14

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

  • Erforderliche WP-Version auf 4.6 aktualisiert
  • remove Text Domain header
  • fehlende ĂŒbersetzbare Zeichenfolgen hinzugefĂŒgt

0.7

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

0.6

  • Laden aller Varianten, wenn keine bestimmte angefordert wird
  • 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
  • Nur erforderliche Schriftdateien laden
  • 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
  • Bessere Behandlung von ĂŒbersetzten Zeichenfolgen

0.1

  • Erstveröffentlichung