misc: distribute SourceSansPro font (#23314)

This commit is contained in:
Serghei Mihai 2018-04-24 16:02:03 +02:00
parent 1ec079cb43
commit edd6237265
14 changed files with 28 additions and 0 deletions

6
README
View File

@ -49,6 +49,12 @@ copyright notices:
# Licensed under the SIL Open Font License v1.10
# https://www.fontsquirrel.com/license/d-din
* Source Sans Pro
# https://www.fontsquirrel.com/fonts/source-sans-pro
#
# Licensed under the SIL Open Font License v1.10
# https://www.fontsquirrel.com/fonts/source-sans-pro
~~~~
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.

View File

@ -0,0 +1,22 @@
$source-sans-pro-font-path: '../fonts/SourceSansPro' !default;
@mixin source-sans-pro-font($type, $weight, $style: normal) {
@font-face {
font-family: 'SourceSansPro-#{$type}';
src: url('#{$source-sans-pro-font-path}/SourceSansPro-#{$type}.otf') format('opentype');
font-weight: $weight;
font-style: $style;
}
}
@mixin source-sans-pro-font-pair($type, $weight) {
@include source-sans-pro-font($type, $weight);
@include source-sans-pro-font(#{$type}It, $weight, italic);
}
@include source-sans-pro-font-pair('ExtraLight', 200);
@include source-sans-pro-font-pair('Light', 300);
@include source-sans-pro-font('Regular', 400);
@include source-sans-pro-font-pair('Semibold', 500);
@include source-sans-pro-font-pair('Bold', 700);
@include source-sans-pro-font-pair('Black', 900);