'Open Sans', 'font-size' => '13px', 'font-weight' => 'normal', 'font-style' => 'normal', 'line-height' => 'normal', 'letter-spacing' => 'normal', 'text-transform' => 'none', 'font-type' => 'google', // Only used internally to determine if the font is a ); // The list of web safe fonts public static $webSafeFonts = array( 'Arial, Helvetica, sans-serif' => 'Arial', '"Arial Black", Gadget, sans-serif' => 'Arial Black', '"Comic Sans MS", cursive, sans-serif' => 'Comic Sans', '"Courier New", Courier, monospace' => 'Courier New', 'Georgia, serif' => 'Geogia', 'Impact, Charcoal, sans-serif' => 'Impact', '"Lucida Console", Monaco, monospace' => 'Lucida Console', '"Lucida Sans Unicode", "Lucida Grande", sans-serif' => 'Lucida Sans', '"Palatino Linotype", "Book Antiqua", Palatino, serif' => 'Palatino', 'Tahoma, Geneva, sans-serif' => 'Tahoma', '"Times New Roman", Times, serif' => 'Times New Roman', '"Trebuchet MS", Helvetica, sans-serif' => 'Trebuchet', 'Verdana, Geneva, sans-serif' => 'Verdana', ); // Holds all the Google Fonts for enqueuing private static $googleFontsOptions = array(); private static $firstLoad = true; public function rst_get_google_fonts(){ include_once("functions-googlefonts.php"); return (rs_get_googlefonts()); } public function render_content() { $array_google_fonts = $this->rst_get_google_fonts(); $name = '_customize-google-font-' . $this->id; $value_font = array(); if(is_serialized($this->value())){ $value_font = unserialize($this->value()); } else { if(count($this->value()) && $this->value() != ''){ $value_font = ($this->value()); } else{ $value_font = self::$defaultStyling; } } $controls_show = $this->controls_show; ?>