add archivo narrow font (#29192)

This commit is contained in:
Frédéric Péters 2019-02-14 20:17:34 +01:00 committed by Thomas NOEL
parent 85c04e5667
commit cff0390924
12 changed files with 26 additions and 0 deletions

8
README
View File

@ -126,6 +126,14 @@ copyright notices:
#
# https://www.fontsquirrel.com/license/khand
* Archivo Narrow
# Copyright (c) 2012, Omnibus-Type (omnibus.type@gmail.com),
# with Reserved Font Name "Archivo";
#
# This Font Software is licensed under the SIL Open Font License, Version 1.1.
#
# https://www.fontsquirrel.com/license/archivo-narrow
~~~~
Some theme variant files have their own specific licenses; refer to

View File

@ -0,0 +1,18 @@
@mixin archivonarrow-font($type, $weight, $style) {
@font-face {
font-family: 'Archivo Narrow';
src: url('../fonts/ArchivoNarrow/archivonarrow-#{$type}-webfont.woff2') format('woff2'),
url('../fonts/ArchivoNarrow/archivonarrow-#{$type}-webfont.woff') format('woff'),
url('../fonts/ArchivoNarrow/archivonarrow-#{$type}-webfont.ttf') format('truetype');
font-weight: $weight;
font-style: $style;
}
}
@mixin archivonarrow-font-pair($type, $weight) {
@include archivonarrow-font($type, $weight, normal);
@include archivonarrow-font('#{$type}italic', $weight, italic);
}
@include archivonarrow-font-pair('regular', 400);
@include archivonarrow-font-pair('bold', 700);