
內容簡介
此外掛的目的是將所有可用的 Google webfonts 提供給 WooThemes Canvas 佈景主題及使用 WooThemes 框架的任何其他佈景主題。
此外,它允許載入其他選定的國際子集 (如希臘文、斯拉夫文、越南文等),Woo Framework 目前不支援這些子集。
它的運作方式如下:
安裝此外掛。它包含一個用於存取 Google Webfonts API 的密鑰。
使用 API 下載 Google 網頁字型清單並顯示在設定頁面打底。此清單將被本地緩存,只有在儲存外掛設置頁面時才會被更新。
所有字型的完整列表和所有變體將取代 Woo 框架內部定義的列表。
此時,您應該能夠在 WooThemes 主題管理頁面中選擇任何可用的 Google 網頁字型,並將這些字型顯示在您的佈景主題中。
在以前的版本中,您必須註冊 Google API 密鑰。現在不再需要,因為外掛內建了一個共用的 API 密鑰。您仍然可以使用自己的密鑰,但如果您不這樣做,啟用外掛時將會設置共用密鑰。
如果使用無效的 API 密鑰,此外掛將有一個備用字型清單,因此您可以在沒有 API 密鑰的情況下嘗試使用它,甚至對您的需求足夠好。
此外,您可以選擇要下載的字型粗細。如果您只使用輕/常/粗 (300/400/700),那麼沒有必要從一些更完整的字型中請求所有的附加粗細,但是它們將使下載量更大,因此這個外掛將有助於保持帶寬和快速載入速度。
此外掛已通過 PHP5.3 的測試,專案存儲庫位於此處:
https://github.com/academe/google-webfonts-for-woo-framework/
已進行更改以使其與 PHP5.2 配合使用,且已報告為可行。
但是,我在至少 5.3 的環境中工作,因此有時可能會不小心出現不相容性問題 - 只需報告它們,我將盡力儘快修復。
請讓我知道此外掛對您的運作效果如何,您是否喜歡它,以及如何改進。
外掛標籤
開發者團隊
② 後台搜尋「Google Webfonts For Woo Framework」→ 直接安裝(推薦)
📦 歷史版本下載
原文外掛簡介
The purpose of this plugin is to make all available Google webfonts available to the WooThemes Canvas theme,
and any other themes that use the WooThemes framework. It also allows additional selected international subsets
(Greek, Cyrillic, Vietnamese etc.) to loaded, which the Woo Framework does not support at present.
It works like this:
You install the plugin. It contains a key that is used to access the Google Webfonts API.
The API is used to download the full list of Google web fonts in the Settings page. This is cached locally, and will only be refreshed when you save the plugin settings page.
The full list of fonts and all variants replaces the list that the Woo framework defines internally.
What you should then see, is the ability to select any available Google web font in the WooThemes theme administration pages,
and have those fonts displayed in your theme.
In previous versions, you had to register for a Google API key. You no longer have to do this, as the plugin
has a shared API key built-in. You can still use your own, but if you don’t, then the shared key will be
set when activating the plugin.
If an invalid API key is used, this plugin has a fallback list of fonts, so you can try it out without an API key,
and that might even be good enough for your purposes.
In addition, you can select the weights that will be downloaded. If you only use light/regular/bold (300/400/700) then
there is no point requesting all the additional weights from some of the fonts that are more complete, but
consequently are a very heavy download. This plugin will help to keep the bandwidth down, and so the load speed higher.
This plugin has been tested against PHP5.3 and the project repository is here:
https://github.com/academe/google-webfonts-for-woo-framework/
Changes have been made so that it works with PHP5.2 and has been reported as working.
However, I work under at least 5.3 so some incompatibilities may creep in by accident from time-to-time – just report them and I will do my best to fix as quickly as possible.
Please let me know how this plugin works for you, whether you like it, and how it can be improved.
