static: provide Oswald font (#24487)
This commit is contained in:
parent
5f4d02425f
commit
617af360c4
8
README
8
README
|
@ -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.
|
@ -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);
|
Loading…
Reference in New Issue