Rob Cresswell 480b520263 Update XStatic-roboto to 0.5.0.0
Change-Id: I649068f04d2a44ea1d429f1cd9e903ef7c52437f
2016-10-28 14:53:41 +02:00

33 lines
1.3 KiB
Plaintext

@roboto-font-path: '../../../fonts';
.roboto-font(@variant, @type, @weight, @style) {
@font-full-path: '@{roboto-font-path}/@{variant}/@{variant}';
@font-face {
font-family: '@{variant}';
src: url('@{font-full-path}-@{type}.eot');
src: local('@{variant} @{type}'),
local('@{variant}-@{type}'),
url('@{font-full-path}-@{type}.eot?#iefix') format('embedded-opentype'),
url('@{font-full-path}-@{type}.woff2') format('woff2'),
url('@{font-full-path}-@{type}.woff') format('woff'),
url('@{font-full-path}-@{type}.ttf') format('truetype'),
url('@{font-full-path}-@{type}.svg#@{variant}') format('svg');
font-weight: @weight;
font-style: @style;
}
@font-face {
font-family: '@{variant}-@{type}';
src: url('@{font-full-path}-@{type}.eot');
src: local('@{variant} @{type}'),
local('@{variant}-@{type}'),
url('@{font-full-path}-@{type}.eot?#iefix') format('embedded-opentype'),
url('@{font-full-path}-@{type}.woff2') format('woff2'),
url('@{font-full-path}-@{type}.woff') format('woff'),
url('@{font-full-path}-@{type}.ttf') format('truetype'),
url('@{font-full-path}-@{type}.svg#@{variant}') format('svg');
}
}