Skip to content

Commit cf73bd0

Browse files
authored
Merge pull request #391 from rtfd/latofont
Fix #256 include lato italic font
2 parents fb98602 + f41d88d commit cf73bd0

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

Gruntfile.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,10 @@ module.exports = function(grunt) {
3232
{
3333
expand: true,
3434
flatten: true,
35-
src: ['bower_components/lato-googlefont/Lato-Bold.ttf',
36-
'bower_components/lato-googlefont/Lato-Regular.ttf'],
35+
src: ['bower_components/lato-googlefont/Lato-Regular.ttf',
36+
'bower_components/lato-googlefont/Lato-Italic.ttf',
37+
'bower_components/lato-googlefont/Lato-Bold.ttf',
38+
'bower_components/lato-googlefont/Lato-BoldItalic.ttf'],
3739
dest: 'sphinx_rtd_theme/static/fonts/',
3840
filter: 'isFile'
3941
},
@@ -160,4 +162,3 @@ module.exports = function(grunt) {
160162
grunt.registerTask('default', ['exec:bower_update','clean:build','sass:dev','browserify:dev','exec:build_sphinx','connect','open','watch']);
161163
grunt.registerTask('build', ['exec:bower_update','clean:build','sass:build','browserify:build','exec:build_sphinx']);
162164
}
163-

sass/_theme_font_local.sass

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,18 @@
2222
font-weight: 700
2323
src: local('Lato Bold'), local('Lato-Bold'), url(../fonts/Lato-Bold.ttf) format('truetype')
2424

25+
@font-face
26+
font-family: 'Lato'
27+
font-style: italic
28+
font-weight: 400
29+
src: local('Lato Italic'), local('Lato-Italic'), url(../fonts/Lato-Italic.ttf) format('truetype')
30+
31+
@font-face
32+
font-family: 'Lato'
33+
font-style: italic
34+
font-weight: 700
35+
src: local('Lato Bold Italic'), local('Lato-BoldItalic'), url(../fonts/Lato-BoldItalic.ttf) format('truetype')
36+
2537
@font-face
2638
font-family: 'Roboto Slab'
2739
font-style: normal

0 commit comments

Comments
 (0)