Commit 621553bf authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review

Merge "Bug 1843202: Allow the local installed .woff font to try inbuilt fonts"

parents f8b9f8f7 9d5d3601
......@@ -625,7 +625,7 @@ class Skin {
$fontface .= '@font-face {';
$fontface .= 'font-family: \''. escape_css_string($fontdata->title) . '\'; ';
$fontface .= 'src: url(\'' . $baseurl . '&format=EOT\'); ';
$fontface .= 'src: local(\'\'), url(\'' . $baseurl . '&format=WOFF\') format(\'woff\'), ';
$fontface .= 'src: local(\'' . escape_css_string($fontdata->title) . '\'), local(\'' . escape_css_string($fontdata->name) . '\'), url(\'' . $baseurl . '&format=WOFF\') format(\'woff\'), ';
$fontface .= 'url(\'' . $baseurl . '&format=TTF\') format(\'truetype\'), ';
$fontface .= 'url(\'' . $baseurl . '&format=SVG#' . $variant['SVGid'] . '\') format(\'svg\'); ';
$fontface .= 'font-weight: ' . $variant['font-weight'] . '; ';
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment