misc: distribute ubuntu font (#23226)

This commit is contained in:
Frédéric Péters 2018-04-16 18:19:03 +02:00
parent 61d1fbd022
commit 3a4b79a83c
18 changed files with 27 additions and 0 deletions

6
README
View File

@ -37,6 +37,12 @@ copyright notices:
# Licensed under the SIL Open Font License, Version 1.1.
# https://www.fontsquirrel.com/license/yanone-kaffeesatz
* Ubuntu font
# https://www.fontsquirrel.com/fonts/ubuntu
#
# Licensed under the Ubuntu Font License, Version 1.0.
# https://www.fontsquirrel.com/license/ubuntu
~~~~
Some CSS variant files have their own specific licenses.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,21 @@
$ubuntu-font-path: '../fonts/ubuntu' !default;
@mixin ubuntu-font($type, $weight, $style: normal) {
@font-face {
font-family: 'Ubuntu';
src: url('#{$ubuntu-font-path}/ubuntu-#{$type}-webfont.woff2') format('woff2'),
url('#{$ubuntu-font-path}/ubuntu-#{$type}-webfont.woff') format('woff');
font-weight: $weight;
font-style: $style;
}
}
@mixin ubuntu-font-pair($type, $weight) {
@include ubuntu-font($type, $weight);
@include ubuntu-font(#{$type}i, $weight, italic);
}
@include ubuntu-font-pair('l', 300); // light
@include ubuntu-font-pair('r', 400); // regular
@include ubuntu-font-pair('m', 500); // medium
@include ubuntu-font-pair('b', 700); // bold