Change Lato font to webfont (version 2.015) (#639)

* Change Lato font to webfont version 2.015

* Fix missing eot, woff and woff2 statement for Lato regular

* Remove reference to non-existing SVG font
This commit is contained in:
Jesse Tan 2018-05-24 17:49:40 +02:00 committed by Aaron Carlisle
parent 9fdadd5a6f
commit 0051b91014
20 changed files with 24 additions and 30 deletions

View File

@ -35,11 +35,8 @@ module.exports = function(grunt) {
{ {
expand: true, expand: true,
flatten: true, flatten: true,
src: ['bower_components/lato-googlefont/Lato-Regular.ttf', src: ['fonts/Lato/*'],
'bower_components/lato-googlefont/Lato-Italic.ttf', dest: 'sphinx_rtd_theme/static/fonts/Lato',
'bower_components/lato-googlefont/Lato-Bold.ttf',
'bower_components/lato-googlefont/Lato-BoldItalic.ttf'],
dest: 'sphinx_rtd_theme/static/fonts/',
filter: 'isFile' filter: 'isFile'
}, },
{ {

View File

@ -1,13 +1,7 @@
sphinx_rtd_theme/static/fonts/Lato-Bold.ttf sphinx_rtd_theme/static/fonts/Lato/*
sphinx_rtd_theme/static/fonts/Lato-Regular.ttf
Copyright (c) 2010-2015, Łukasz Dziedzic (dziedzic@typoland.com),
with Reserved Font Name Lato.
Copyright (c) <dates>, <Copyright Holder> (<URL|email>),
with Reserved Font Name <Reserved Font Name>.
Copyright (c) <dates>, <additional Copyright Holder> (<URL|email>),
with Reserved Font Name <additional Reserved Font Name>.
Copyright (c) <dates>, <additional Copyright Holder> (<URL|email>).
This Font Software is licensed under the SIL Open Font License, Version 1.1. This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at: This license is copied below, and is also available with a FAQ at:

View File

@ -29,7 +29,6 @@
"wyrm": "~1.0.x" "wyrm": "~1.0.x"
}, },
"dependencies": { "dependencies": {
"lato-googlefont": "*",
"font-awesome": "~4.7" "font-awesome": "~4.7"
}, },
"resolutions": { "resolutions": {

BIN
fonts/Lato/lato-bold.eot Normal file

Binary file not shown.

BIN
fonts/Lato/lato-bold.ttf Normal file

Binary file not shown.

BIN
fonts/Lato/lato-bold.woff Normal file

Binary file not shown.

BIN
fonts/Lato/lato-bold.woff2 Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
fonts/Lato/lato-italic.eot Normal file

Binary file not shown.

BIN
fonts/Lato/lato-italic.ttf Normal file

Binary file not shown.

BIN
fonts/Lato/lato-italic.woff Normal file

Binary file not shown.

Binary file not shown.

BIN
fonts/Lato/lato-regular.eot Normal file

Binary file not shown.

BIN
fonts/Lato/lato-regular.ttf Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1,26 +1,31 @@
@font-face @font-face
font-family: 'Lato' font-family: 'Lato'
font-style: normal src: url('../fonts/Lato/lato-regular.eot')
src: url('../fonts/Lato/lato-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/Lato/lato-regular.woff2') format('woff2'), url('../fonts/Lato/lato-regular.woff') format('woff'), url('../fonts/Lato/lato-regular.ttf') format('truetype')
font-weight: 400 font-weight: 400
src: local('Lato Regular'), local('Lato-Regular'), url(../fonts/Lato-Regular.ttf) format('truetype')
@font-face
font-family: 'Lato'
font-style: normal font-style: normal
font-weight: 700
src: local('Lato Bold'), local('Lato-Bold'), url(../fonts/Lato-Bold.ttf) format('truetype')
@font-face @font-face
font-family: 'Lato' font-family: 'Lato'
src: url('../fonts/Lato/lato-bold.eot')
src: url('../fonts/Lato/lato-bold.eot?#iefix') format('embedded-opentype'), url('../fonts/Lato/lato-bold.woff2') format('woff2'), url('../fonts/Lato/lato-bold.woff') format('woff'), url('../fonts/Lato/lato-bold.ttf') format('truetype')
font-weight: 700
font-style: normal
@font-face
font-family: 'Lato'
src: url('../fonts/Lato/lato-bolditalic.eot')
src: url('../fonts/Lato/lato-bolditalic.eot?#iefix') format('embedded-opentype'), url('../fonts/Lato/lato-bolditalic.woff2') format('woff2'), url('../fonts/Lato/lato-bolditalic.woff') format('woff'), url('../fonts/Lato/lato-bolditalic.ttf') format('truetype')
font-weight: 700
font-style: italic font-style: italic
@font-face
font-family: 'Lato'
src: url('../fonts/Lato/lato-italic.eot')
src: url('../fonts/Lato/lato-italic.eot?#iefix') format('embedded-opentype'), url('../fonts/Lato/lato-italic.woff2') format('woff2'), url('../fonts/Lato/lato-italic.woff') format('woff'), url('../fonts/Lato/lato-italic.ttf') format('truetype')
font-weight: 400 font-weight: 400
src: local('Lato Italic'), local('Lato-Italic'), url(../fonts/Lato-Italic.ttf) format('truetype')
@font-face
font-family: 'Lato'
font-style: italic font-style: italic
font-weight: 700
src: local('Lato Bold Italic'), local('Lato-BoldItalic'), url(../fonts/Lato-BoldItalic.ttf) format('truetype')
@font-face @font-face
font-family: 'Roboto Slab' font-family: 'Roboto Slab'
@ -33,5 +38,4 @@
font-family: 'Roboto Slab' font-family: 'Roboto Slab'
font-style: normal font-style: normal
font-weight: 700 font-weight: 700
src: url('../fonts/RobotoSlab/roboto-slab-v7-bold.eot') src: local('Roboto Slab Bold'), local('RobotoSlab-Bold'), url(../fonts/RobotoSlab-Bold.ttf) format('truetype')
src: url('../fonts/RobotoSlab/roboto-slab-v7-bold.eot?#iefix') format('embedded-opentype'), url('../fonts/RobotoSlab/roboto-slab-v7-bold.woff2') format('woff2'), url('../fonts/RobotoSlab/roboto-slab-v7-bold.woff') format('woff'), url('../fonts/RobotoSlab/roboto-slab-v7-bold.ttf') format('truetype')