このプラグインは 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.

FAQ

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.

評価

2023年2月10日
I used this plugin on different sites and – of course – doublecheck the functionality from time to time.As other guys also stated here, the plugin works reliable with different versions of WP since years.So great!
2022年10月12日
What can i say. Worked perfekt on various website with different wordpress websitebuilders.
2022年8月28日
Although it’s 4 years old, it does the job pretty well. Even better than many actual plugins. Great plugin. Installed it on a site with my own theme. Has just a small settings window, and from the first load of the website it recognized, downloaded, cached and hosted all Google Fonts. So it seems it’s GDPR compliant. Easy and simple! Great plugin, thumbs up 👍
2022年2月22日 1 reply
Been using this for a little bit now and just noticed it’s 4yrs last updated… Bit concerned haha. Would you mind checking things out and making sure that it is still simple enough to be safe, without need of update to help us know? Thank you so much for your efforts!
40件のレビューをすべて表示

貢献者と開発者

Self-Hosted Google Fonts はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献しています。

貢献者

“Self-Hosted Google Fonts” をあなたの言語に翻訳しましょう。

開発に興味がありますか ?

コードを閲覧するか、SVN リポジトリをチェックするか、開発ログRSS で購読してみてください。

変更履歴

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.