fonts: add Rubik (#68144)

This commit is contained in:
Paul Marillonnet 2022-08-12 11:46:24 +02:00
parent 4bddee1739
commit 67e467ffea
22 changed files with 30 additions and 0 deletions

7
README
View File

@ -383,6 +383,13 @@ copyright notices:
#
# https://www.fontsquirrel.com/fonts/ibm-plex
* Rubik
# Copyright (c) 2015 by Hubert & Fischer. All rights reserved
#
# This Font Software is licensed under the SIL Open Font License, Version 1.1.
#
# https://www.fontsquirrel.com/license/rubik
~~~~
Some theme variant files have their own specific licenses; refer to

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.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,23 @@
$rubik-font-path: '/static/fonts/Rubik' !default;
@mixin rubik-font($type, $weight, $style: normal) {
@font-face {
font-family: 'Rubik';
src: url('#{$rubik-font-path}/Rubik-#{$type}.woff2') format('woff2'),
url('#{$rubik-font-path}/Rubik-#{$type}.woff') format('woff');
font-weight: $weight;
font-style: $style;
}
}
@mixin rubik-font-pair($type, $weight) {
@include rubik-font($type, $weight);
@include rubik-font(#{$type}Italic, $weight, italic);
}
@include rubik-font-pair('Light', 300);
@include rubik-font-pair('Regular', 400);
@include rubik-font-pair('Medium', 500);
@include rubik-font-pair('Bold', 700);
@include rubik-font-pair('Black', 900);