function bizz_get_fonts() { $all_fonts = new Fonts(); $all_fonts->set_fonts(); return apply_filters('bizz_design_fonts', $all_fonts->fonts); }
public function setFont($fontFile, $fontSize, $angle = 0) { $this->font = array(Fonts::getInstance()->getFont($fontFile), $fontSize, $angle); }
?> "><?php echo $font_title; ?> </option> <?php } ?> </optgroup> <optgroup label="<?php _e('Google', 'elementor'); ?> "> <?php foreach (Fonts::get_fonts_by_groups([Fonts::GOOGLE, Fonts::EARLYACCESS]) as $font_title => $font_type) { ?> <option value="<?php echo esc_attr($font_title); ?> "><?php echo $font_title; ?> </option> <?php } ?> </optgroup> </select> <?php } elseif ('text' === $option['type']) {
public function add_enqueue_font($font) { switch (Fonts::get_font_type($font)) { case Fonts::GOOGLE: if (!in_array($font, $this->_enqueue_google_fonts)) { $this->_enqueue_google_fonts[] = $font; } break; case Fonts::EARLYACCESS: if (!in_array($font, $this->_enqueue_google_early_access_fonts)) { $this->_enqueue_google_early_access_fonts[] = $font; } break; } }
protected function get_default_settings() { return ['fonts' => Fonts::get_fonts()]; }
/** * thesis_get_fonts() — Retrieves Thesis' available fonts in an array. * * @uses Fonts::set_fonts * @return array * @since 1.1 */ function thesis_get_fonts() { $all_fonts = new Fonts(); $all_fonts->set_fonts(); return $all_fonts->fonts; }