Skip to content

Commit

Permalink
removed webfonts loader
Browse files Browse the repository at this point in the history
  • Loading branch information
AndiDittrich committed Apr 15, 2020
1 parent 18e39e8 commit f705999
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions modules/core/FontManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}
}

0 comments on commit f705999

Please sign in to comment.