Merge pull request #391 from rtfd/latofont

Fix #256 include lato italic font
This commit is contained in:
Anthony 2017-03-28 09:09:17 -07:00 committed by GitHub
commit cf73bd01d2
2 changed files with 16 additions and 3 deletions

View File

@ -32,8 +32,10 @@ module.exports = function(grunt) {
{
expand: true,
flatten: true,
src: ['bower_components/lato-googlefont/Lato-Bold.ttf',
'bower_components/lato-googlefont/Lato-Regular.ttf'],
src: ['bower_components/lato-googlefont/Lato-Regular.ttf',
'bower_components/lato-googlefont/Lato-Italic.ttf',
'bower_components/lato-googlefont/Lato-Bold.ttf',
'bower_components/lato-googlefont/Lato-BoldItalic.ttf'],
dest: 'sphinx_rtd_theme/static/fonts/',
filter: 'isFile'
},
@ -160,4 +162,3 @@ module.exports = function(grunt) {
grunt.registerTask('default', ['exec:bower_update','clean:build','sass:dev','browserify:dev','exec:build_sphinx','connect','open','watch']);
grunt.registerTask('build', ['exec:bower_update','clean:build','sass:build','browserify:build','exec:build_sphinx']);
}

View File

@ -22,6 +22,18 @@
font-weight: 700
src: local('Lato Bold'), local('Lato-Bold'), url(../fonts/Lato-Bold.ttf) format('truetype')
@font-face
font-family: 'Lato'
font-style: italic
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-weight: 700
src: local('Lato Bold Italic'), local('Lato-BoldItalic'), url(../fonts/Lato-BoldItalic.ttf) format('truetype')
@font-face
font-family: 'Roboto Slab'
font-style: normal