GOOGLE, 'Oooh Baby' => self::GOOGLE, 'Open Sans' => self::GOOGLE, 'Open Sans Hebrew' => self::EARLYACCESS, // Hack for Google Early Access. 'Open Sans Hebrew Condensed' => self::EARLYACCESS, // Hack for Google Early Access. 'Oranienbaum' => self::GOOGLE, 'Orbitron' => self::GOOGLE, 'Oregano' => self::GOOGLE, 'Orelega One' => self::GOOGLE, 'Orienta' => self::GOOGLE, 'Original Surfer' => self::GOOGLE, 'Oswald' => self::GOOGLE, 'Outfit' => self::GOOGLE, 'Over the Rainbow' => self::GOOGLE, 'Overlock' => self::GOOGLE, 'Overlock SC' => self::GOOGLE, 'Overpass' => self::GOOGLE, 'Overpass Mono' => self::GOOGLE, 'Ovo' => self::GOOGLE, 'Oxanium' => self::GOOGLE, 'Oxygen' => self::GOOGLE, 'Oxygen Mono' => self::GOOGLE, 'PT Mono' => self::GOOGLE, 'PT Sans' => self::GOOGLE, 'PT Sans Caption' => self::GOOGLE, 'PT Sans Narrow' => self::GOOGLE, 'PT Serif' => self::GOOGLE, 'PT Serif Caption' => self::GOOGLE, 'Pacifico' => self::GOOGLE, 'Padauk' => self::GOOGLE, 'Padyakke Expanded One' => self::GOOGLE, 'Palanquin' => self::GOOGLE, 'Palanquin Dark' => self::GOOGLE, 'Pangolin' => self::GOOGLE, 'Paprika' => self::GOOGLE, 'Parisienne' => self::GOOGLE, 'Passero One' => self::GOOGLE, 'Passion One' => self::GOOGLE, 'Passions Conflict' => self::GOOGLE, 'Pathway Gothic One' => self::GOOGLE, 'Patrick Hand' => self::GOOGLE, 'Patrick Hand SC' => self::GOOGLE, 'Pattaya' => self::GOOGLE, 'Patua One' => self::GOOGLE, 'Pavanam' => self::GOOGLE, 'Paytone One' => self::GOOGLE, 'Peddana' => self::GOOGLE, 'Peralta' => self::GOOGLE, 'Permanent Marker' => self::GOOGLE, 'Petemoss' => self::GOOGLE, 'Petit Formal Script' => self::GOOGLE, 'Petrona' => self::GOOGLE, 'Philosopher' => self::GOOGLE, 'Piazzolla' => self::GOOGLE, 'Piedra' => self::GOOGLE, 'Pinyon Script' => self::GOOGLE, 'Pirata One' => self::GOOGLE, 'Plaster' => self::GOOGLE, 'Play' => self::GOOGLE, 'Playball' => self::GOOGLE, 'Playfair Display' => self::GOOGLE, 'Playfair Display SC' => self::GOOGLE, 'Plus Jakarta Sans' => self::GOOGLE, 'Podkova' => self::GOOGLE, 'Poiret One' => self::GOOGLE, 'Poller One' => self::GOOGLE, 'Poly' => self::GOOGLE, 'Pompiere' => self::GOOGLE, 'Pontano Sans' => self::GOOGLE, 'Poor Story' => self::GOOGLE, 'Poppins' => self::GOOGLE, 'Port Lligat Sans' => self::GOOGLE, 'Port Lligat Slab' => self::GOOGLE, 'Potta One' => self::GOOGLE, 'Pragati Narrow' => self::GOOGLE, 'Praise' => self::GOOGLE, 'Prata' => self::GOOGLE, 'Preahvihear' => self::GOOGLE, 'Press Start 2P' => self::GOOGLE, 'Pridi' => self::GOOGLE, 'Princess Sofia' => self::GOOGLE, 'Prociono' => self::GOOGLE, 'Prompt' => self::GOOGLE, 'Prosto One' => self::GOOGLE, 'Proza Libre' => self::GOOGLE, 'Public Sans' => self::GOOGLE, 'Puppies Play' => self::GOOGLE, 'Puritan' => self::GOOGLE, 'Purple Purse' => self::GOOGLE, 'Qahiri' => self::GOOGLE, 'Quando' => self::GOOGLE, 'Quantico' => self::GOOGLE, 'Quattrocento' => self::GOOGLE, 'Quattrocento Sans' => self::GOOGLE, 'Questrial' => self::GOOGLE, 'Quicksand' => self::GOOGLE, 'Quintessential' => self::GOOGLE, 'Qwigley' => self::GOOGLE, 'Qwitcher Grypen' => self::GOOGLE, 'Racing Sans One' => self::GOOGLE, 'Radio Canada' => self::GOOGLE, 'Radley' => self::GOOGLE, 'Rajdhani' => self::GOOGLE, 'Rakkas' => self::GOOGLE, 'Raleway' => self::GOOGLE, 'Raleway Dots' => self::GOOGLE, 'Ramabhadra' => self::GOOGLE, 'Ramaraja' => self::GOOGLE, 'Rambla' => self::GOOGLE, 'Rammetto One' => self::GOOGLE, 'Rampart One' => self::GOOGLE, 'Ranchers' => self::GOOGLE, 'Rancho' => self::GOOGLE, 'Ranga' => self::GOOGLE, 'Rasa' => self::GOOGLE, 'Rationale' => self::GOOGLE, 'Ravi Prakash' => self::GOOGLE, 'Readex Pro' => self::GOOGLE, 'Recursive' => self::GOOGLE, 'Red Hat Display' => self::GOOGLE, 'Red Hat Mono' => self::GOOGLE, 'Red Hat Text' => self::GOOGLE, 'Red Rose' => self::GOOGLE, 'Redacted' => self::GOOGLE, 'Redacted Script' => self::GOOGLE, 'Redressed' => self::GOOGLE, 'Reem Kufi' => self::GOOGLE, 'Reem Kufi Fun' => self::GOOGLE, 'Reem Kufi Ink' => self::GOOGLE, 'Reenie Beanie' => self::GOOGLE, 'Reggae One' => self::GOOGLE, 'Revalia' => self::GOOGLE, 'Rhodium Libre' => self::GOOGLE, 'Ribeye' => self::GOOGLE, 'Ribeye Marrow' => self::GOOGLE, 'Righteous' => self::GOOGLE, 'Risque' => self::GOOGLE, 'Road Rage' => self::GOOGLE, 'Roboto' => self::GOOGLE, 'Roboto Condensed' => self::GOOGLE, 'Roboto Flex' => self::GOOGLE, 'Roboto Mono' => self::GOOGLE, 'Roboto Serif' => self::GOOGLE, 'Roboto Slab' => self::GOOGLE, 'Rochester' => self::GOOGLE, 'Rock Salt' => self::GOOGLE, 'RocknRoll One' => self::GOOGLE, 'Rokkitt' => self::GOOGLE, 'Romanesco' => self::GOOGLE, 'Ropa Sans' => self::GOOGLE, 'Rosario' => self::GOOGLE, 'Rosarivo' => self::GOOGLE, 'Rouge Script' => self::GOOGLE, 'Rowdies' => self::GOOGLE, 'Rozha One' => self::GOOGLE, 'Rubik' => self::GOOGLE, 'Rubik 80s Fade' => self::GOOGLE, 'Rubik Beastly' => self::GOOGLE, 'Rubik Bubbles' => self::GOOGLE, 'Rubik Burned' => self::GOOGLE, 'Rubik Dirt' => self::GOOGLE, 'Rubik Distressed' => self::GOOGLE, 'Rubik Gemstones' => self::GOOGLE, 'Rubik Glitch' => self::GOOGLE, 'Rubik Iso' => self::GOOGLE, 'Rubik Marker Hatch' => self::GOOGLE, 'Rubik Maze' => self::GOOGLE, 'Rubik Microbe' => self::GOOGLE, 'Rubik Mono One' => self::GOOGLE, 'Rubik Moonrocks' => self::GOOGLE, 'Rubik Puddles' => self::GOOGLE, 'Rubik Spray Paint' => self::GOOGLE, 'Rubik Storm' => self::GOOGLE, 'Rubik Vinyl' => self::GOOGLE, 'Rubik Wet Paint' => self::GOOGLE, 'Ruda' => self::GOOGLE, 'Rufina' => self::GOOGLE, 'Ruge Boogie' => self::GOOGLE, 'Ruluko' => self::GOOGLE, 'Rum Raisin' => self::GOOGLE, 'Ruslan Display' => self::GOOGLE, 'Russo One' => self::GOOGLE, 'Ruthie' => self::GOOGLE, 'Rye' => self::GOOGLE, 'STIX Two Text' => self::GOOGLE, 'Sacramento' => self::GOOGLE, 'Sahitya' => self::GOOGLE, 'Sail' => self::GOOGLE, 'Saira' => self::GOOGLE, 'Saira Condensed' => self::GOOGLE, 'Saira Extra Condensed' => self::GOOGLE, 'Saira Semi Condensed' => self::GOOGLE, 'Saira Stencil One' => self::GOOGLE, 'Salsa' => self::GOOGLE, 'Sanchez' => self::GOOGLE, 'Sancreek' => self::GOOGLE, 'Sansita' => self::GOOGLE, 'Sansita Swashed' => self::GOOGLE, 'Sarabun' => self::GOOGLE, 'Sarala' => self::GOOGLE, 'Sarina' => self::GOOGLE, 'Sarpanch' => self::GOOGLE, 'Sassy Frass' => self::GOOGLE, 'Satisfy' => self::GOOGLE, 'Sawarabi Gothic' => self::GOOGLE, 'Sawarabi Mincho' => self::GOOGLE, 'Scada' => self::GOOGLE, 'Scheherazade New' => self::GOOGLE, 'Schoolbell' => self::GOOGLE, 'Scope One' => self::GOOGLE, 'Seaweed Script' => self::GOOGLE, 'Secular One' => self::GOOGLE, 'Sedgwick Ave' => self::GOOGLE, 'Sedgwick Ave Display' => self::GOOGLE, 'Sen' => self::GOOGLE, 'Send Flowers' => self::GOOGLE, 'Sevillana' => self::GOOGLE, 'Seymour One' => self::GOOGLE, 'Shadows Into Light' => self::GOOGLE, 'Shadows Into Light Two' => self::GOOGLE, 'Shalimar' => self::GOOGLE, 'Shanti' => self::GOOGLE, 'Share' => self::GOOGLE, 'Share Tech' => self::GOOGLE, 'Share Tech Mono' => self::GOOGLE, 'Shippori Antique' => self::GOOGLE, 'Shippori Antique B1' => self::GOOGLE, 'Shippori Mincho' => self::GOOGLE, 'Shippori Mincho B1' => self::GOOGLE, 'Shojumaru' => self::GOOGLE, 'Short Stack' => self::GOOGLE, 'Shrikhand' => self::GOOGLE, 'Siemreap' => self::GOOGLE, 'Sigmar One' => self::GOOGLE, 'Signika' => self::GOOGLE, 'Signika Negative' => self::GOOGLE, 'Silkscreen' => self::GOOGLE, 'Simonetta' => self::GOOGLE, 'Single Day' => self::GOOGLE, 'Sintony' => self::GOOGLE, 'Sirin Stencil' => self::GOOGLE, 'Six Caps' => self::GOOGLE, 'Skranji' => self::GOOGLE, 'Slabo 13px' => self::GOOGLE, 'Slabo 27px' => self::GOOGLE, 'Slackey' => self::GOOGLE, 'Smokum' => self::GOOGLE, 'Smooch' => self::GOOGLE, 'Smooch Sans' => self::GOOGLE, 'Smythe' => self::GOOGLE, 'Sniglet' => self::GOOGLE, 'Snippet' => self::GOOGLE, 'Snowburst One' => self::GOOGLE, 'Sofadi One' => self::GOOGLE, 'Sofia' => self::GOOGLE, 'Sofia Sans' => self::GOOGLE, 'Sofia Sans Condensed' => self::GOOGLE, 'Sofia Sans Extra Condensed' => self::GOOGLE, 'Sofia Sans Semi Condensed' => self::GOOGLE, 'Solitreo' => self::GOOGLE, 'Solway' => self::GOOGLE, 'Song Myung' => self::GOOGLE, 'Sono' => self::GOOGLE, 'Sonsie One' => self::GOOGLE, 'Sora' => self::GOOGLE, 'Sorts Mill Goudy' => self::GOOGLE, 'Source Code Pro' => self::GOOGLE, 'Source Sans 3' => self::GOOGLE, 'Source Sans Pro' => self::GOOGLE, 'Source Serif 4' => self::GOOGLE, 'Source Serif Pro' => self::GOOGLE, 'Space Grotesk' => self::GOOGLE, 'Space Mono' => self::GOOGLE, 'Special Elite' => self::GOOGLE, 'Spectral' => self::GOOGLE, 'Spectral SC' => self::GOOGLE, 'Spicy Rice' => self::GOOGLE, 'Spinnaker' => self::GOOGLE, 'Spirax' => self::GOOGLE, 'Splash' => self::GOOGLE, 'Spline Sans' => self::GOOGLE, 'Spline Sans Mono' => self::GOOGLE, 'Squada One' => self::GOOGLE, 'Square Peg' => self::GOOGLE, 'Sree Krushnadevaraya' => self::GOOGLE, 'Sriracha' => self::GOOGLE, 'Srisakdi' => self::GOOGLE, 'Staatliches' => self::GOOGLE, 'Stalemate' => self::GOOGLE, 'Stalinist One' => self::GOOGLE, 'Stardos Stencil' => self::GOOGLE, 'Stick' => self::GOOGLE, 'Stick No Bills' => self::GOOGLE, 'Stint Ultra Condensed' => self::GOOGLE, 'Stint Ultra Expanded' => self::GOOGLE, 'Stoke' => self::GOOGLE, 'Strait' => self::GOOGLE, 'Style Script' => self::GOOGLE, 'Stylish' => self::GOOGLE, 'Sue Ellen Francisco' => self::GOOGLE, 'Suez One' => self::GOOGLE, 'Sulphur Point' => self::GOOGLE, 'Sumana' => self::GOOGLE, 'Sunflower' => self::GOOGLE, 'Sunshiney' => self::GOOGLE, 'Supermercado One' => self::GOOGLE, 'Sura' => self::GOOGLE, 'Suranna' => self::GOOGLE, 'Suravaram' => self::GOOGLE, 'Suwannaphum' => self::GOOGLE, 'Swanky and Moo Moo' => self::GOOGLE, 'Syncopate' => self::GOOGLE, 'Syne' => self::GOOGLE, 'Syne Mono' => self::GOOGLE, 'Syne Tactile' => self::GOOGLE, 'Tai Heritage Pro' => self::GOOGLE, 'Tajawal' => self::GOOGLE, 'Tangerine' => self::GOOGLE, 'Tapestry' => self::GOOGLE, 'Taprom' => self::GOOGLE, 'Tauri' => self::GOOGLE, 'Taviraj' => self::GOOGLE, 'Teko' => self::GOOGLE, 'Telex' => self::GOOGLE, 'Tenali Ramakrishna' => self::GOOGLE, 'Tenor Sans' => self::GOOGLE, 'Text Me One' => self::GOOGLE, 'Texturina' => self::GOOGLE, 'Thasadith' => self::GOOGLE, 'The Girl Next Door' => self::GOOGLE, 'The Nautigal' => self::GOOGLE, 'Tienne' => self::GOOGLE, 'Tillana' => self::GOOGLE, 'Timmana' => self::GOOGLE, 'Tinos' => self::GOOGLE, 'Tiro Bangla' => self::GOOGLE, 'Tiro Devanagari Hindi' => self::GOOGLE, 'Tiro Devanagari Marathi' => self::GOOGLE, 'Tiro Devanagari Sanskrit' => self::GOOGLE, 'Tiro Gurmukhi' => self::GOOGLE, 'Tiro Kannada' => self::GOOGLE, 'Tiro Tamil' => self::GOOGLE, 'Tiro Telugu' => self::GOOGLE, 'Titan One' => self::GOOGLE, 'Titillium Web' => self::GOOGLE, 'Tomorrow' => self::GOOGLE, 'Tourney' => self::GOOGLE, 'Trade Winds' => self::GOOGLE, 'Train One' => self::GOOGLE, 'Trirong' => self::GOOGLE, 'Trispace' => self::GOOGLE, 'Trocchi' => self::GOOGLE, 'Trochut' => self::GOOGLE, 'Truculenta' => self::GOOGLE, 'Trykker' => self::GOOGLE, 'Tulpen One' => self::GOOGLE, 'Turret Road' => self::GOOGLE, 'Twinkle Star' => self::GOOGLE, 'Ubuntu' => self::GOOGLE, 'Ubuntu Condensed' => self::GOOGLE, 'Ubuntu Mono' => self::GOOGLE, 'Uchen' => self::GOOGLE, 'Ultra' => self::GOOGLE, 'Unbounded' => self::GOOGLE, 'Uncial Antiqua' => self::GOOGLE, 'Underdog' => self::GOOGLE, 'Unica One' => self::GOOGLE, 'UnifrakturCook' => self::GOOGLE, 'UnifrakturMaguntia' => self::GOOGLE, 'Unkempt' => self::GOOGLE, 'Unlock' => self::GOOGLE, 'Unna' => self::GOOGLE, 'Updock' => self::GOOGLE, 'Urbanist' => self::GOOGLE, 'VT323' => self::GOOGLE, 'Vampiro One' => self::GOOGLE, 'Varela' => self::GOOGLE, 'Varela Round' => self::GOOGLE, 'Varta' => self::GOOGLE, 'Vast Shadow' => self::GOOGLE, 'Vazirmatn' => self::GOOGLE, 'Vesper Libre' => self::GOOGLE, 'Viaoda Libre' => self::GOOGLE, 'Vibes' => self::GOOGLE, 'Vibur' => self::GOOGLE, 'Vidaloka' => self::GOOGLE, 'Viga' => self::GOOGLE, 'Voces' => self::GOOGLE, 'Volkhov' => self::GOOGLE, 'Vollkorn' => self::GOOGLE, 'Vollkorn SC' => self::GOOGLE, 'Voltaire' => self::GOOGLE, 'Vujahday Script' => self::GOOGLE, 'Waiting for the Sunrise' => self::GOOGLE, 'Wallpoet' => self::GOOGLE, 'Walter Turncoat' => self::GOOGLE, 'Warnes' => self::GOOGLE, 'Water Brush' => self::GOOGLE, 'Waterfall' => self::GOOGLE, 'Wellfleet' => self::GOOGLE, 'Wendy One' => self::GOOGLE, 'Whisper' => self::GOOGLE, 'WindSong' => self::GOOGLE, 'Wire One' => self::GOOGLE, 'Work Sans' => self::GOOGLE, 'Xanh Mono' => self::GOOGLE, 'Yaldevi' => self::GOOGLE, 'Yanone Kaffeesatz' => self::GOOGLE, 'Yantramanav' => self::GOOGLE, 'Yatra One' => self::GOOGLE, 'Yellowtail' => self::GOOGLE, 'Yeon Sung' => self::GOOGLE, 'Yeseva One' => self::GOOGLE, 'Yesteryear' => self::GOOGLE, 'Yomogi' => self::GOOGLE, 'Yrsa' => self::GOOGLE, 'Yuji Boku' => self::GOOGLE, 'Yuji Mai' => self::GOOGLE, 'Yuji Syuku' => self::GOOGLE, 'Yusei Magic' => self::GOOGLE, 'ZCOOL KuaiLe' => self::GOOGLE, 'ZCOOL QingKe HuangYou' => self::GOOGLE, 'ZCOOL XiaoWei' => self::GOOGLE, 'Zen Antique' => self::GOOGLE, 'Zen Antique Soft' => self::GOOGLE, 'Zen Dots' => self::GOOGLE, 'Zen Kaku Gothic Antique' => self::GOOGLE, 'Zen Kaku Gothic New' => self::GOOGLE, 'Zen Kurenaido' => self::GOOGLE, 'Zen Loop' => self::GOOGLE, 'Zen Maru Gothic' => self::GOOGLE, 'Zen Old Mincho' => self::GOOGLE, 'Zen Tokyo Zoo' => self::GOOGLE, 'Zeyada' => self::GOOGLE, 'Zhi Mang Xing' => self::GOOGLE, 'Zilla Slab' => self::GOOGLE, 'Zilla Slab Highlight' => self::GOOGLE, ] ); } return $fonts; } /** * Get font type. * * Retrieve the font type for a given font. * * @since 1.0.0 * @access public * @static * * @param string $name Font name. * * @return string|false Font type, or false if font doesn't exist. */ public static function get_font_type( $name ) { $fonts = self::get_fonts(); if ( empty( $fonts[ $name ] ) ) { return false; } return $fonts[ $name ]; } /** * Get fonts by group. * * Retrieve all the fonts belong to specific group. * * @since 1.0.0 * @access public * @static * * @param array $groups Optional. Font group. Default is an empty array. * * @return array Font type, or false if font doesn't exist. */ public static function get_fonts_by_groups( $groups = [] ) { return array_filter( self::get_fonts(), function( $font ) use ( $groups ) { return in_array( $font, $groups ); } ); } public static function is_google_fonts_enabled() : bool { if ( null === static::$is_google_fonts_enabled ) { $default_value = '1'; // TODO: For future use, using for new installs. //$is_new_site = Upgrade_Manager::install_compare( '3.10.0', '>=' ); //$default_value = $is_new_site ? '0' : '1'; $option = get_option( 'elementor_google_font', $default_value ); static::$is_google_fonts_enabled = '1' === $option; } return static::$is_google_fonts_enabled; } public static function get_font_display_setting() { return get_option( 'elementor_font_display', 'auto' ); } public static function reset_local_cache() { static::$is_google_fonts_enabled = null; static::$font_groups = null; } }