Commit 992e9ab5 by Scott

Update Ubuntu font

Fixes glitches/ugliness on Windows
parent 25d48a83
......@@ -77,24 +77,28 @@ class qa_html_theme extends qa_html_theme_base
if ($this->localfonts) {
// add Ubuntu font locally (inlined for speed)
$this->output_array(array(
'<style>',
'@font-face {',
' font-family: "Ubuntu"; font-style: normal; font-weight: 400;',
' src: local("Ubuntu"), url("' . $this->rooturl . 'fonts/Ubuntu-regular.woff") format("woff");',
'}',
'@font-face {',
' font-family: "Ubuntu"; font-style: normal; font-weight: 700;',
' src: local("Ubuntu Bold"), local("Ubuntu-Bold"), url("' . $this->rooturl . 'fonts/Ubuntu-700.woff") format("woff");',
'}',
'@font-face {',
' font-family: "Ubuntu"; font-style: italic; font-weight: 400;',
' src: local("Ubuntu Italic"), local("Ubuntu-Italic"), url("' . $this->rooturl . 'fonts/Ubuntu-italic.woff") format("woff");',
'}',
'@font-face {',
' font-family: "Ubuntu"; font-style: italic; font-weight: 700;',
' src: local("Ubuntu Bold Italic"), local("Ubuntu-BoldItalic"), url("' . $this->rooturl . 'fonts/Ubuntu-700italic.woff") format("woff");',
'}',
'</style>',
"<style>",
"@font-face {",
" font-family: 'Ubuntu'; font-weight: normal; font-style: normal;",
" src: local('Ubuntu'),",
" url('{$this->rooturl}fonts/ubuntu-regular.woff2') format('woff2'), url('{$this->rooturl}fonts/ubuntu-regular.woff') format('woff');",
"}",
"@font-face {",
" font-family: 'Ubuntu'; font-weight: bold; font-style: normal;",
" src: local('Ubuntu Bold'), local('Ubuntu-Bold'),",
" url('{$this->rooturl}fonts/ubuntu-bold.woff2') format('woff2'), url('{$this->rooturl}fonts/ubuntu-bold.woff') format('woff');",
"}",
"@font-face {",
" font-family: 'Ubuntu'; font-weight: normal; font-style: italic;",
" src: local('Ubuntu Italic'), local('Ubuntu-Italic'),",
" url('{$this->rooturl}fonts/ubuntu-italic.woff2') format('woff2'), url('{$this->rooturl}fonts/ubuntu-italic.woff') format('woff');",
"}",
"@font-face {",
" font-family: 'Ubuntu'; font-weight: normal; font-style: italic;",
" src: local('Ubuntu Bold Italic'), local('Ubuntu-BoldItalic'),",
" url('{$this->rooturl}fonts/ubuntu-bold-italic.woff2') format('woff2'), url('{$this->rooturl}fonts/ubuntu-bold-italic.woff') format('woff');",
"}",
"</style>",
));
}
else {
......
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