fonts: include Cantarell (#26469)

This commit is contained in:
Frédéric Péters 2018-09-17 14:26:04 +02:00
parent 8d3fc5d067
commit 676274e94a
6 changed files with 23 additions and 0 deletions

8
README
View File

@ -87,6 +87,14 @@ copyright notices:
#
# https://www.fontsquirrel.com/license/bitter
* Cantarell font
# Copyright © 2009-2011, Understanding Limited <dave@understandinglimited.com>
# Copyright © 2010-2011, Jakub Steiner <jimmac@gmail.com>
#
# This Font Software is licensed under the SIL Open Font License, Version 1.1.
#
# https://gitlab.gnome.org/GNOME/cantarell-fonts/blob/master/COPYING
~~~~
Some theme variant files have their own specific licenses; refer to

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,15 @@
$cantarell-font-path: '../fonts/Cantarell' !default;
@mixin cantarell-font($type, $weight, $style: normal) {
@font-face {
font-family: 'Cantarell';
src: url('#{$cantarell-font-path}/Cantarell-#{$type}-webfont.woff') format('woff');
font-weight: $weight;
font-style: $style;
}
}
@include cantarell-font('Regular', 400);
@include cantarell-font('Oblique', 400, italic);
@include cantarell-font('Bold', 700);
@include cantarell-font('BoldOblique', 700, italic);