misc: distribute ubuntu font (#23226)
This commit is contained in:
parent
61d1fbd022
commit
3a4b79a83c
6
README
6
README
|
@ -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.
|
@ -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
|
Loading…
Reference in New Issue