function wppb_font_family() { // Default font options $possible = array('Georgia, serif', 'Courier, monospace', 'Zapf-chancery, cursive', 'Western, fantasy', 'Verdana, sans-serif', 'Helvetica Neue, Arial', 'Times, serif'); // Adding options from WP Paintbrush Fonts plugin if (function_exists('wppb_embeddable_fonts')) { foreach (wppb_embeddable_fonts() as $font => $details) { if ('on' == get_wppb_font_option('fontembed_' . $font)) { array_push($possible, "'" . $font . "', sans-serif"); } } } return $possible; }
/** * Embedding fonts * @since 0.1 */ function wppb_load_fonts() { foreach (wppb_embeddable_fonts() as $font => $details) { if ('on' == get_wppb_font_option('fontembed_' . $font)) { wp_enqueue_style('pressabl-' . $font, $details['url'], false, '', 'screen'); } } }