fonts: add PT Sans (#35659)

This commit is contained in:
Frédéric Péters 2019-08-29 13:19:51 +02:00
parent 8e17256830
commit 17aac4f6cd
12 changed files with 29 additions and 2 deletions

8
README
View File

@ -210,6 +210,14 @@ copyright notices:
#
# This license is available with a FAQ at: http://scripts.sil.org/OFL
* PT Sans
# Copyright © 2009 ParaType Ltd.
# with Reserved Names "PT Sans" and "ParaType".
#
# Paratype PT Sans Free Font License v1.00.
#
# https://www.fontsquirrel.com/license/pt-sans
~~~~
Some theme variant files have their own specific licenses; refer to

View File

@ -1,5 +1,3 @@
@import url(https://fonts.googleapis.com/css?family=PT%20Sans:400,700);
div#page {
margin: 0 60px;
background: #F1F1F1;

View File

@ -1,3 +1,5 @@
@import '../includes/font-ptsans';
$primary-color: #C25D1B;
$width: 1140px;

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,19 @@
@mixin ptsans-font($type, $weight) {
@font-face {
font-family: 'PT Sans';
src: url('/static/fonts/PTSans/PTSans-#{$type}.woff2') format('woff2'),
url('/static/fonts/PTSans/PTSans-#{$type}.woff') format('woff');
font-weight: $weight;
font-style: normal;
}
@font-face {
font-family: 'PT Sans';
src: url('/static/fonts/PTSans/PTSans-#{$type}Italic.woff2') format('woff2'),
url('/static/fonts/PTSans/PTSans-#{$type}Italic.woff') format('woff');
font-weight: $weight;
font-style: italic;
}
}
@include ptsans-font('Regular', 400);
@include ptsans-font('Bold', 700);