static: provide Oswald font (#24487)

This commit is contained in:
Frédéric Péters 2018-06-12 17:36:16 +02:00
parent 5f4d02425f
commit 617af360c4
10 changed files with 24 additions and 0 deletions

8
README
View File

@ -71,6 +71,14 @@ copyright notices:
#
# https://www.fontsquirrel.com/license/raleway
* Oswald font
# Copyright (c) 2012, Vernon Adams (vern@newtypography.co.uk),
# with Reserved Font Name Oswald
#
# This Font Software is licensed under the SIL Open Font License, Version 1.1.
#
# https://www.fontsquirrel.com/license/oswald
~~~~
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.

View File

@ -0,0 +1,16 @@
$oswald-font-path: '../fonts/Oswald' !default;
@mixin oswald-font($type, $weight) {
@font-face {
font-family: 'Oswald';
src: url('#{$oswald-font-path}/oswald-#{$type}-webfont.woff2') format('woff2'),
url('#{$oswald-font-path}/oswald-#{$type}-webfont.woff') format('woff');
font-weight: $weight;
font-style: normal;
}
}
@include oswald-font('regular', 400);
@include oswald-font('medium', 500);
@include oswald-font('semibold', 600);
@include oswald-font('bold', 700);