use wcf\system\style\StyleCompiler;
use wcf\system\style\StyleHandler;
use wcf\system\Regex;
+use wcf\system\style\exception\FontDownloadFailed;
+use wcf\system\style\FontManager;
use wcf\system\WCF;
use wcf\util\DateUtil;
use wcf\util\FileUtil;
}
}
+ // download google fonts
+ $fontManager = FontManager::getInstance();
+ $family = $style->getVariable('wcfFontFamilyGoogle');
+ try {
+ $fontManager->downloadFamily($family);
+ }
+ catch (FontDownloadFailed $e) {
+ // ignore
+ }
+
$tar->close();
return $style;