Title: Embed Google Fonts
Author: Adrian Mörchen
Published: <strong>2018 年 6 月 14 日</strong>
Last modified: 2024 年 5 月 2 日

---

搜尋外掛

![](https://ps.w.org/embed-google-fonts/assets/banner-772x250.png?rev=1892621)

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

![](https://ps.w.org/embed-google-fonts/assets/icon-256x256.png?rev=1892571)

# Embed Google Fonts

 由 [Adrian Mörchen](https://profiles.wordpress.org/adrian2k7/) 開發

[下載](https://downloads.wordpress.org/plugin/embed-google-fonts.3.1.1.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/embed-google-fonts/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/embed-google-fonts/#reviews)
 * [開發資訊](https://tw.wordpress.org/plugins/embed-google-fonts/#developers)

 [技術支援](https://wordpress.org/support/plugin/embed-google-fonts/)

## 外掛說明

Embed Google Fonts tries to automatically replace registered Google Fonts from themes
and plugins with local versions, directly loaded from your own server.

**Contribute**: [https://github.com/moewe-io/embed-google-fonts](https://github.com/moewe-io/embed-google-fonts)

**Notes**

 * The first request might be very slow, as fonts are downloaded and cached the 
   first time they are requested.
 * This doesn’t automatically replace all your Google fonts with local versions.
   If a plugin/theme doesn’t use WordPress wp_enqueue_style it probably won’t work.
 * Loaded fonts are not optimized, means, the whole font including all subsets is
   loaded
 * See FAQ for instructions to use locally hosted fonts directly and avoid using
   Heroku

**Thank you:** Fonts are downloaded using: [https://gwfh.mranftl.com/fonts](https://gwfh.mranftl.com/fonts)

## 常見問題集

### How to use locally stored fonts directly?

It is possible to avoid using Heroku and directly use locally hosted fonts.

Easy way:

 * Let the plugin download the fonts
    - Click the button in the plugin list overview 😉

Custom way:

 * Create a folder “embed-google-fonts” in your “wp-content” folder
 * For every font create a subfolder, i.e. “embed-google-fonts/open-sans/”
    - Create a file “embed-google-fonts/open-sans/_font.css”
    - Edit your “_font.css” to include rules for loading your local font

### Does this work with every theme and plugin?

No, themes and plugins must use wp_enqueue_style to load Google Fonts.
 Just try
it, if it works, than you are fine.

### Does it work with caching plugins?

Generally yes. You may exclude some files, if there are problems.

### Does it work with WP Rocket?

Yes, it is working with WP Rocket.

### Does it work with WP Fastest Cache?

If you are using [WP Fastest Cache](https://de.wordpress.org/plugins/wp-fastest-cache/),
you should create an exclude CSS rule for “_font.css”

### Does it work with Divi?

You have to disable

 * **Improve Google Fonts Loading** and
 * **Defer jQuery And jQuery Migrate**

in

 * **Divi  Theme Options  General  Performance**

## 使用者評論

![](https://secure.gravatar.com/avatar/3a275698345b7379d392041e3ed10269350f276b30003dcb1cd4806230da0410?
s=60&d=retro&r=g)

### 󠀁[GREAT!](https://wordpress.org/support/topic/great-16302/)󠁿

 [J.](https://profiles.wordpress.org/joergkainz/) 2024 年 5 月 13 日

Great, works with DIVI, BLOCKSY & LEARNDASH out of the box!

![](https://secure.gravatar.com/avatar/06d87967b3bd0ccc6034ebd07cdaf7b5cfa7d0ea3b44185893e5fdffc4f90946?
s=60&d=retro&r=g)

### 󠀁[highly recommended!](https://wordpress.org/support/topic/highly-recommended-595/)󠁿

 [peter11y](https://profiles.wordpress.org/peter11y/) 2022 年 11 月 27 日

I have waited for something like this. Super easy to use and a great way to make
your site EU GDPR compliant. Good work!

![](https://secure.gravatar.com/avatar/7add35c3a17326f373bc466e6796213ba575e783901ba455f4202088b0cadb72?
s=60&d=retro&r=g)

### 󠀁[This one worked (if it does not: read on)](https://wordpress.org/support/topic/this-one-worked-if-it-does-not-read-on/)󠁿

 [leosok](https://profiles.wordpress.org/leosok/) 2022 年 9 月 24 日

I tried some of these plugins because people try to make money from people using
google fonts directly in Germany. This one worked like a charm, I just had to get
rid of one CSS-Import manually. But there was one request to fonts.googleapis.com/
css?family=Open+Sans I could not get rid of. It took me ages to realize, it was 
from the Wordpress Admin Bar. So you need to check in a fresh brwoser-window, best
a private one. Thx to the people behind this plugin!

![](https://secure.gravatar.com/avatar/cac117b7e2927782a78a5e8bb213ba683f89fa6fff25199a6269f14aa13578b8?
s=60&d=retro&r=g)

### 󠀁[Great plugin!](https://wordpress.org/support/topic/great-plugin-34898/)󠁿

 [Ralf Geschke](https://profiles.wordpress.org/geschke/) 2022 年 8 月 24 日

Really great, thanks a lot! Works out of the box, prevents from GDPR/DSGVO issues.

![](https://secure.gravatar.com/avatar/2004309f28a1b51cc8026c7bc90b973ca6e038f93ddc19e5676f631d3aabf81f?
s=60&d=retro&r=g)

### 󠀁[Works perfect!](https://wordpress.org/support/topic/works-perfect-995/)󠁿

 [contixmedia](https://profiles.wordpress.org/contixmedia/) 2022 年 8 月 22 日

Just install, activate and forget. You guys are great! Thank you!

![](https://secure.gravatar.com/avatar/e2edb027681e0ff51b0a2641438b3d9fa52f508425fe6f0d65ef69d7934090d0?
s=60&d=retro&r=g)

### 󠀁[worx perfect](https://wordpress.org/support/topic/worx-perfect-2/)󠁿

 [marcaurelius](https://profiles.wordpress.org/marcaurelius/) 2022 年 7 月 26 日

great plugin worx perfect – THX

 [ 閱讀全部 12 則使用者評論 ](https://wordpress.org/support/plugin/embed-google-fonts/reviews/)

## 參與者及開發者

以下人員參與了開源軟體〈Embed Google Fonts〉的開發相關工作。

參與者

 *   [ Adrian Mörchen ](https://profiles.wordpress.org/adrian2k7/)
 *   [ moewe.io ](https://profiles.wordpress.org/moewe/)
 *   [ Markus Weigelt ](https://profiles.wordpress.org/creabrain/)

〈Embed Google Fonts〉外掛目前已有 2 個本地化語言版本。 感謝[全部譯者](https://translate.wordpress.org/projects/wp-plugins/embed-google-fonts/contributors)
為這個外掛做出的貢獻。

[將〈Embed Google Fonts〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/embed-google-fonts)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/embed-google-fonts/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/embed-google-fonts/)，或透過
[RSS](https://plugins.trac.wordpress.org/log/embed-google-fonts/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/embed-google-fonts/)。

## 變更記錄

#### 3.1.1

 * Improved security: Added a nonce and capability (manage_options) check
 * Requires PHP 8.0+ now

#### 3.1.0

 * Fixed URL to new download server (Thanks brauni85 via Github)
 * Fixed typo in key for locking (Thanks Thomas)

#### 3.0.2

 * Allow installation with PHP 7.3, because of high demand (Please note: It is highly
   recommended to upgrade to newer PHP)
 * Fixed typo (Thanks Jenny)

#### 3.0.1

 * Reverted renaming of _font.css (again)

#### 3.0.0

 * Fonts may be stored locally now and will be loaded from there. This may avoid
   poor performance, when the remote server isn’t available
    - See FAQ for more information
 * Removed direct Avada support
 * Renamed “_font.css” to “font.css”
 * Added korean subset (Thanks @phl23)
 * Code refactoring

#### 2.3.1

 * Avoid warning, when removing not existing file

#### 2.3.0

 * Added missing Oriya subset (#6)
 * Improved stability

#### 2.2.4

 * Avoid loading icons from Google Fonts (shows a PHP warning)
 * Remove support for Memorable theme

#### 2.2.3

 * Don’t show errors in frontend, when downloading a font didn’t worked.
 * Removed version constant, as it isn’t used (EMBED_GOOGLE_FONTS_VERSION)

#### 2.2.2

 * Removed unnecessary error log

#### 2.2.1

 * Reverted file name of font.css to _font.css (for simpler WP Fastest Cache exclusion)

#### 2.2.0

 * Minor improvements
 * Downloaded fonts will be cleared every 30 days automatically
 * Downloaded fonts will be cleared, when “entire cache” is cleared in WP Rocket
 * Downloaded fonts will be cleared, when cache is cleared in WP Fastest Cache

#### 2.1.0

 * Improved hoster compatible (used WordPress unzip_file)

#### 2.0.6

 * Fixed bug in family detection

#### 2.0.5

 * Prepared for first public release

#### 2.0.4

 * Fixed missing devanagari subset

#### 2.0.3

 * Fixed missing hebrew subset

#### 2.0.2

 * Fixed download url

#### 2.0.1

 * Uses standard cache folder for the fonts.

#### 2.0

 * Fonts are loaded and cached locally on the fly now. (from https://google-webfonts-
   helper.herokuapp.com/fonts)

#### 1.3.3

 * Added Work Sans, Karla, Alef, Permanent Marker, Amatic SC, Libre Baskerville,
   Roboto

#### 1.3.2

 * Improved theme compatibility (Elmastudio)

#### 1.3.1

 * Added Source Sans Pro and Anton

#### 1.3.0

 * Register fonts when needed and not all at the beginning (should improve performance)
 * Added Domine

#### 1.2.6

 * Added Vollkorn, Montserrat and Forum

#### 1.2.5

 * Added Muli and Maven Pro

#### 1.2.4

 * Added Poppins and Questrial

#### 1.2.3

 * Improved Avada support
 * Added Oswald and Indie Flower

#### 1.2.2

 * Improved filesystem access

#### 1.2.1

 * Added PT Sans

#### 1.2

 * Use filesystem for detecting embedded fonts

#### 1.1.6

 * Added Nunito and Raleway

#### 1.1.5

 * Added some fonts

#### 1.1.4

 * Hopefully finally fixed URL problems

#### 1.1.3

 * Improved url loading

#### 1.1.2

 * Reverted renaming

#### 1.1.1

 * Renamed _font.css to font.css

#### 1.1.0

 * Generic replacement of enqueued fonts

#### 1.0.0

 * Initial release

## 中繼資料

 *  版本 **3.1.1**
 *  最後更新 **2 年前**
 *  啟用安裝數 **5,000+**
 *  WordPress 版本需求 ** 6.5.2 或更新版本 **
 *  已測試相容的 WordPress 版本 **6.5.8**
 *  PHP 版本需求 ** 8.0 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/embed-google-fonts/)、[French (France)](https://fr.wordpress.org/plugins/embed-google-fonts/)、
   及 [Swedish](https://sv.wordpress.org/plugins/embed-google-fonts/).
 *  [將這個外掛本地化為你的母語版本](https://translate.wordpress.org/projects/wp-plugins/embed-google-fonts)
 * 標籤:
 * [embed](https://tw.wordpress.org/plugins/tags/embed/)[GDPR](https://tw.wordpress.org/plugins/tags/gdpr/)
   [google fonts](https://tw.wordpress.org/plugins/tags/google-fonts/)
 *  [進階檢視](https://tw.wordpress.org/plugins/embed-google-fonts/advanced/)

## 評分

 5 星，滿分為 5 星

 *  [  12 個 5 星使用者評論     ](https://wordpress.org/support/plugin/embed-google-fonts/reviews/?filter=5)
 *  [  0 個 4 星使用者評論     ](https://wordpress.org/support/plugin/embed-google-fonts/reviews/?filter=4)
 *  [  0 個 3 星使用者評論     ](https://wordpress.org/support/plugin/embed-google-fonts/reviews/?filter=3)
 *  [  0 個 2 星使用者評論     ](https://wordpress.org/support/plugin/embed-google-fonts/reviews/?filter=2)
 *  [  0 個 1 星使用者評論     ](https://wordpress.org/support/plugin/embed-google-fonts/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/embed-google-fonts/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/embed-google-fonts/reviews/)

## 參與者

 *   [ Adrian Mörchen ](https://profiles.wordpress.org/adrian2k7/)
 *   [ moewe.io ](https://profiles.wordpress.org/moewe/)
 *   [ Markus Weigelt ](https://profiles.wordpress.org/creabrain/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/embed-google-fonts/)

## 贊助

想要支援這個外掛的發展嗎？

 [ 贊助這個外掛 ](https://www.paypal.com/paypalme/scrobbleme/5)