fonts: add Josefin Sans (#41917)
This commit is contained in:
parent
56fbbc9b65
commit
72df4f5962
7
README
7
README
|
@ -282,6 +282,13 @@ copyright notices:
|
|||
#
|
||||
# https://www.fontsquirrel.com/license/fira-sans
|
||||
|
||||
* Josefin Sans
|
||||
# Copyright (c) 2010 by Typemade (hi@typemade.mx). All rights reserved.
|
||||
#
|
||||
# This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
||||
#
|
||||
# https://www.fontsquirrel.com/license/josefin-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.
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.
|
@ -1,32 +1,22 @@
|
|||
$josefinsans-font-path: '/static/xstatic/fonts' !default;
|
||||
$josefinsans-font-path: '/static/fonts/JosefinSans' !default;
|
||||
|
||||
@mixin josefinsans-font($type, $weight, $style: normal) {
|
||||
@font-face {
|
||||
font-family: 'Josefin Sans';
|
||||
src: url('#{$josefinsans-font-path}/#{$type}/JosefinSans-#{$type}.woff2') format('woff2'),
|
||||
url('#{$josefinsans-font-path}/#{$type}/JosefinSans-#{$type}.woff') format('woff');
|
||||
font-weight: $weight;
|
||||
font-style: $style;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'JosefinSans-#{$type}';
|
||||
src: url('#{$josefinsans-font-path}/#{$type}/JosefinSans-#{$type}.woff2') format('woff2'),
|
||||
url('#{$josefinsans-font-path}/#{$type}/JosefinSans-#{$type}.woff') format('woff');
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Josefin Sans';
|
||||
src: url('#{$josefinsans-font-path}/josefinsans-#{$type}-webfont.woff2') format('woff2'),
|
||||
url('#{$josefinsans-font-path}/josefinsans-#{$type}-webfont.woff') format('woff');
|
||||
font-weight: $weight;
|
||||
font-style: $style;
|
||||
}
|
||||
}
|
||||
|
||||
@mixin josefinsans-font-pair($type, $weight) {
|
||||
@include josefinsans-font($type, $weight);
|
||||
@if $type == Regular {
|
||||
@include josefinsans-font(Regular, $weight, normal);
|
||||
} @else {
|
||||
@include josefinsans-font(#{$type}Italic, $weight, italic);
|
||||
}
|
||||
@include josefinsans-font($type, $weight);
|
||||
@include josefinsans-font(#{$type}Italic, $weight, italic);
|
||||
}
|
||||
|
||||
@include josefinsans-font-pair('Thin', 200);
|
||||
@include josefinsans-font-pair('Light', 300);
|
||||
@include josefinsans-font-pair('Regular', 400);
|
||||
@include josefinsans-font-pair('SemiBold', 600);
|
||||
@include josefinsans-font-pair('Bold', 700);
|
||||
@include josefinsans-font-pair('thin', 100);
|
||||
@include josefinsans-font-pair('light', 300);
|
||||
@include josefinsans-font-pair('regular', 400);
|
||||
@include josefinsans-font-pair('semibold', 600);
|
||||
@include josefinsans-font-pair('bold', 700);
|
||||
|
|
Loading…
Reference in New Issue