Skip to content

Commit

Permalink
Bundle Roboto Slab as a real web font (not just ttf) (#642)
Browse files Browse the repository at this point in the history
  • Loading branch information
jessetan authored and Blendify committed May 24, 2018
1 parent 17ecdc6 commit 9fdadd5
Show file tree
Hide file tree
Showing 13 changed files with 23 additions and 10 deletions.
15 changes: 15 additions & 0 deletions .gitattributes
@@ -0,0 +1,15 @@
# Document global line endings settings
# https://help.github.com/articles/dealing-with-line-endings/
* text eol=lf


# Denote all files that are truly binary and should not be modified.
*.ai binary
*.jpg binary
*.otf binary
*.png binary
*.eot binary
*.ttf binary
*.whl binary
*.woff binary
*.woff2 binary
3 changes: 1 addition & 2 deletions Apache-License-2.0.txt
@@ -1,5 +1,4 @@
sphinx_rtd_theme/static/fonts/RobotoSlab-Bold.ttf
sphinx_rtd_theme/static/fonts/RobotoSlab-Regular.tt/
/fonts/RobotoSlab/*


Apache License
Expand Down
5 changes: 2 additions & 3 deletions Gruntfile.js
Expand Up @@ -45,9 +45,8 @@ module.exports = function(grunt) {
{
expand: true,
flatten: true,
src: ['bower_components/robotoslab-googlefont/RobotoSlab-Bold.ttf',
'bower_components/robotoslab-googlefont/RobotoSlab-Regular.ttf'],
dest: 'sphinx_rtd_theme/static/fonts/',
src: ['fonts/RobotoSlab/*'],
dest: 'sphinx_rtd_theme/static/fonts/RobotoSlab/',
filter: 'isFile'
}
]
Expand Down
1 change: 0 additions & 1 deletion bower.json
Expand Up @@ -30,7 +30,6 @@
},
"dependencies": {
"lato-googlefont": "*",
"robotoslab-googlefont": "*",
"font-awesome": "~4.7"
},
"resolutions": {
Expand Down
Binary file added fonts/RobotoSlab/roboto-slab-v7-bold.eot
Binary file not shown.
Binary file added fonts/RobotoSlab/roboto-slab-v7-bold.ttf
Binary file not shown.
Binary file added fonts/RobotoSlab/roboto-slab-v7-bold.woff
Binary file not shown.
Binary file added fonts/RobotoSlab/roboto-slab-v7-bold.woff2
Binary file not shown.
Binary file added fonts/RobotoSlab/roboto-slab-v7-regular.eot
Binary file not shown.
Binary file added fonts/RobotoSlab/roboto-slab-v7-regular.ttf
Binary file not shown.
Binary file added fonts/RobotoSlab/roboto-slab-v7-regular.woff
Binary file not shown.
Binary file added fonts/RobotoSlab/roboto-slab-v7-regular.woff2
Binary file not shown.
9 changes: 5 additions & 4 deletions sass/_theme_font_local.sass
Expand Up @@ -26,11 +26,12 @@
font-family: 'Roboto Slab'
font-style: normal
font-weight: 400
src: local('Roboto Slab Regular'), local('RobotoSlab-Regular'), url(../fonts/RobotoSlab-Regular.ttf) format('truetype')
src: url('../fonts/RobotoSlab/roboto-slab.eot')
src: url('../fonts/RobotoSlab/roboto-slab-v7-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/RobotoSlab/roboto-slab-v7-regular.woff2') format('woff2'), url('../fonts/RobotoSlab/roboto-slab-v7-regular.woff') format('woff'), url('../fonts/RobotoSlab/roboto-slab-v7-regular.ttf') format('truetype')

@font-face
@font-face
font-family: 'Roboto Slab'
font-style: normal
font-weight: 700
src: local('Roboto Slab Bold'), local('RobotoSlab-Bold'), url(../fonts/RobotoSlab-Bold.ttf) format('truetype')

src: url('../fonts/RobotoSlab/roboto-slab-v7-bold.eot')
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')

0 comments on commit 9fdadd5

Please sign in to comment.