Elegant Custom Fonts

外掛說明

This plugin appears at Settings -> Fonts.

For each @font-face, specify .woff URL, weight, style, and a font family name.

Appropriate @font-face rules will be saved to a CSS file and enqueued with wp_enqueue_stylesheet, so that you can use the font with the font-family CSS property.

No nonsense. No API keys. No font conversion. No bloat.

Integration Instructions for Plugin & Theme Developers

Use ECF_Plugin::get_font_families() to get a list of font families added with Elegant Custom Fonts. Then add these to any “Font” dropdowns in your plugin or theme.

Example:

if (class_exists(‘ECF_Plugin’)) {
$font_family_list = ECF_Plugin::get_font_families();
} else {
$font_family_list = null;
}

/* loop through the $font_family_list array and add each family to your ‘Font’ dropdowns */

常見問題集

Does this plugin work with Joomla?

No.

使用者評論

2018 年 5 月 18 日
This is exactly what I've been looking for. Works perfectly, no need for thousands of options. Good job.
閱讀全部 3 則使用者評論

參與者及開發者

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

參與者

將〈Elegant Custom Fonts〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.0.1

  • Fix CSRF vulnerability
  • Fix PHP warnings
  • Update Author URI

1.0

  • Initial release