misc: add Nunito Sans font (#81063)

This commit is contained in:
Frédéric Péters 2023-09-11 15:10:23 +02:00
parent ce81df089a
commit a7a689764e
16 changed files with 29 additions and 0 deletions

7
README
View File

@ -444,6 +444,13 @@ copyright notices:
#
# https://github.com/Omnibus-Type/MuseoModerno/blob/master/LICENSE.md
* Nunito Sans
# Copyright 2016 The Nunito Project Authors (contact@sansoxygen.com),
#
# This Font Software is licensed under the SIL Open Font License, Version 1.1.
#
# https://www.fontsquirrel.com/license/nunito-sans
~~~~
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.

View File

@ -0,0 +1,22 @@
@mixin nunitosans-font($type, $weight) {
@font-face {
font-family: 'Nunito Sans';
src: url('/static/fonts/NunitoSans/NunitoSans-#{$type}.woff2') format('woff2');
font-weight: $weight;
font-style: normal;
}
@font-face {
font-family: 'Nunito Sans';
src: url('/static/fonts/NunitoSans/NunitoSans-#{$type}Italic.woff2') format('woff2');
font-weight: $weight;
font-style: italic;
}
}
@include nunitosans-font('ExtraLight', 200);
@include nunitosans-font('Light', 300);
@include nunitosans-font('Regular', 400);
@include nunitosans-font('Semibold', 600);
@include nunitosans-font('Bold', 700);
@include nunitosans-font('ExtraBold', 800);
@include nunitosans-font('Black', 900);