From f70599968dac57c20276d09108fb6e713488911e Mon Sep 17 00:00:00 2001 From: Andi Dittrich Date: Wed, 15 Apr 2020 17:12:49 +0200 Subject: [PATCH] removed webfonts loader --- modules/core/FontManager.php | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/modules/core/FontManager.php b/modules/core/FontManager.php index 9b2588b..db7f8b9 100644 --- a/modules/core/FontManager.php +++ b/modules/core/FontManager.php @@ -38,25 +38,4 @@ public function getFontByName($name){ return array_values($fontlist)[0]; } } - - function enqueue(){ - // list of google webfonts to load - $webfontList = array(); - - // get all available webfonts - $webfonts = GoogleWebfontResources::getMonospaceFonts(); - - // load enabled fonts - foreach ($webfonts as $name => $font){ - $fid = preg_replace('/[^A-Za-z0-9]/', '', $name); - if ($this->_config['webfonts'.$fid]){ - $webfontList[] = $font; - } - } - - // load webfonts ? - if (count($webfontList) > 0){ - $this->enqueueStyle('enlighter-webfonts', '//fonts.googleapis.com/css?family=' . implode('|', $webfontList)); - } - } } \ No newline at end of file