mirror of
https://github.com/readthedocs/sphinx_rtd_theme.git
synced 2026-10-12 09:24:51 -05:00
Bundle Roboto Slab as a real web font (not just ttf) (#642)
This commit is contained in:
1 parent
17ecdc6839
commit
9fdadd5a6f
13 files changed
+23
-10
No files matched your search
@@ -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
|
||||
@@ -1,5 +1,4 @@
|
||||
sphinx_rtd_theme/static/fonts/RobotoSlab-Bold.ttf
|
||||
sphinx_rtd_theme/static/fonts/RobotoSlab-Regular.tt/
|
||||
/fonts/RobotoSlab/*
|
||||
|
||||
|
||||
Apache License
|
||||
|
||||
+2
-3
@@ -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'
|
||||
}
|
||||
]
|
||||
|
||||
@@ -30,7 +30,6 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"lato-googlefont": "*",
|
||||
"robotoslab-googlefont": "*",
|
||||
"font-awesome": "~4.7"
|
||||
},
|
||||
"resolutions": {
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -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')
|
||||
Reference in new issue
Block a user