Skip to content

Commit f705999

Browse files
committed
removed webfonts loader
1 parent 18e39e8 commit f705999

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

modules/core/FontManager.php

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -38,25 +38,4 @@ public function getFontByName($name){
3838
return array_values($fontlist)[0];
3939
}
4040
}
41-
42-
function enqueue(){
43-
// list of google webfonts to load
44-
$webfontList = array();
45-
46-
// get all available webfonts
47-
$webfonts = GoogleWebfontResources::getMonospaceFonts();
48-
49-
// load enabled fonts
50-
foreach ($webfonts as $name => $font){
51-
$fid = preg_replace('/[^A-Za-z0-9]/', '', $name);
52-
if ($this->_config['webfonts'.$fid]){
53-
$webfontList[] = $font;
54-
}
55-
}
56-
57-
// load webfonts ?
58-
if (count($webfontList) > 0){
59-
$this->enqueueStyle('enlighter-webfonts', '//fonts.googleapis.com/css?family=' . implode('|', $webfontList));
60-
}
61-
}
6241
}

0 commit comments

Comments
 (0)