diff --git a/Gruntfile.js b/Gruntfile.js index 9bb8215b..bdd63938 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -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']); } - diff --git a/sass/_theme_font_local.sass b/sass/_theme_font_local.sass index 9fe5f191..0e02343c 100644 --- a/sass/_theme_font_local.sass +++ b/sass/_theme_font_local.sass @@ -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