Elegant Custom Fonts

Elegant Custom Fonts Install Statistics

-2
84.62%
Today: 11 Yesterday: 13 All-time: 22,823 downloads
Elegant Custom Fonts Icon

Try plugin: Elegant Custom Fonts

We'll create fresh WordPress site with Elegant Custom Fonts installed. You have 20 minutes to test the plugin after that site we'll be deleted.

Takes ~10 seconds to install.

About Elegant Custom Fonts

A simple solution for self-hosted custom fonts.

3


0


0


0


0

updated: 10 months ago
since: 6 years ago
author: Louis Reingold

Description

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 */