该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

Self-Hosted Google Fonts

描述

An easy way to self-host all your Google Fonts for increased Privacy or to meet a law requirement.
Theme and plugin authors are often unwilling to offer a self-hosted method and it’s quite laborious to download and upload each of the required font.

This plugin makes it all easy. It will scan all CSS on your site and automagically download and host on your server the necessary Google Web Fonts.

How it works:

  • Converts all Google Font enqueues to locally hosted CSS files.
  • Scans and converts any inline style tags using @imports for fonts.
  • Processes all the local CSS files that weren’t properly enqueued (bad authors?).
  • While doing so, downloads all the required Google Fonts to your server.

Features:

  • Automatic self-hosted fonts with no effort.
  • Compatible with all themes and plugins.
  • Supports IE9+ and all modern browsers.
  • Optimized code benchmarked for performance.
  • Built-in cache for processing.
  • Compatible with cache plugins and Autoptimize.
  • API and hooks for theme & plugin authors.
  • Uses unicode-range for optimized fonts when using multiple subsets. Google officially does this too, but other solutions for downloading fonts don’t support this.

Dev Notes

Cache: The most common reason for a failure. If you have a cache plugin, clear the caches.

It will not work with JS solutions like WebFont Loader. If you’re a developer, you can still use this plugin’s API to get the needed CSS and files to convert your WebFont Loader. I will post instructions on support forums if there’s interest.

安装

  1. Upload/Install and activate the plugin.
  2. Go to Settings > Self-Hosted Google Fonts, Enable Processing and Save.
  3. Clear all caches from any cache plugin you may have active.

常见问题

Installation Instructions
  1. Upload/Install and activate the plugin.
  2. Go to Settings > Self-Hosted Google Fonts, Enable Processing and Save.
  3. Clear all caches from any cache plugin you may have active.

评价

2021年1月16日
I loved this addon. But unfortunately: it's dead. No updates for 3 years, no support... Too bad.
2020年5月5日
A MUST for any wordpress user who has a template with google fonts. Simple to use and increases not only the website speed but also your visitor's privacy.
2020年4月22日
Simply just awesome... Not sure why your plugin is not using by many people so far...
2020年4月11日
Klappt alles super. Habe meine Website in Chrome untersucht und hatte Cookies von Google aktiv laufend. Nach der Aktivierung des Plugins habe ich die Website erneut untersucht und die Cookies sind nicht mehr gelaufen.
2019年12月2日
Works but the reason most people would use this is to improve their speed/page insight rating but it lacks font display swap which also affects rating & the plugin seems abandoned so I don't think it will ever be added. Too bad.
2019年8月17日
Best plugin ever to host locally the google fonts. It does it in a simple click. No need to make headache, and it's not making any troubles on my site. I recommend!
阅读所有31条评价

贡献者及开发者

“Self-Hosted Google Fonts” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

更新日志

1.0.1

  • Added an option to toggle protocol-relative URLs for generated CSS files.
  • Fixed: Checkbox options not saving.
  • Fixed: Italics not getting correct WOFF2 files.
  • Added normalization to support regular/bold as 400/700.

1.0.0

  • Initial release.