misc: add spectral font (for dsfr) (#62259)

This commit is contained in:
Frédéric Péters 2022-02-28 16:43:04 +01:00
parent acab2fa8ce
commit acab6e2d4d
6 changed files with 20 additions and 0 deletions

8
README
View File

@ -343,6 +343,14 @@ copyright notices:
#
# TODO: update once the DSFR team gets back to it.
* Spectral
# Copyright 2017 Production Type (info@productiontype.com)
#
# This Font Software is licensed under the SIL Open Font License, Version 1.1.
#
# https://www.fontsquirrel.com/license/spectral
~~~~
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.

View File

@ -0,0 +1,12 @@
@mixin spectral-font($type, $weight) {
@font-face {
font-family: 'Spectral';
src: url('/static/fonts/Spectral/Spectral-#{$type}.woff2') format('woff2'),
url('/static/fonts/Spectral/Spectral-#{$type}.woff') format('woff');
font-weight: $weight;
font-style: normal;
}
}
@include spectral-font('Regular', 400);
@include spectral-font('ExtraBold', 800);