| 1 |
From: Dmitry Shachnev <[email protected]> |
| 2 |
Date: Fri, 29 Jun 2018 14:54:26 +0300 |
| 3 |
Subject: Use only TTF and WOFF2 fonts for Lato, only WOFF2 for RobotoSlab |
| 4 |
|
| 5 |
Also use different file names for compatibility with packages built |
| 6 |
against sphinx-rtd-theme 0.2.4. |
| 7 |
--- |
| 8 |
src/sass/_theme_font_local.sass | 15 ++++++--------- |
| 9 |
1 file changed, 6 insertions(+), 9 deletions(-) |
| 10 |
|
| 11 |
diff --git a/src/sass/_theme_font_local.sass b/src/sass/_theme_font_local.sass |
| 12 |
index 48f22e7..31da232 100644 |
| 13 |
--- a/src/sass/_theme_font_local.sass |
| 14 |
+++ b/src/sass/_theme_font_local.sass |
| 15 |
@@ -1,30 +1,27 @@ |
| 16 |
-$lato-font-path: "~lato-font/fonts" |
| 17 |
-$roboto-font-path: "~roboto-fontface/fonts/roboto-slab" |
| 18 |
- |
| 19 |
@font-face |
| 20 |
font-family: 'Lato' |
| 21 |
- src: url('#{$lato-font-path}/lato-normal/lato-normal.woff2') format('woff2'), url('#{$lato-font-path}/lato-normal/lato-normal.woff') format('woff') |
| 22 |
+ src: url('../fonts/Lato-Regular.woff2') format('woff2'), url('../fonts/Lato-Regular.ttf') format('truetype') |
| 23 |
font-weight: 400 |
| 24 |
font-style: normal |
| 25 |
font-display: $font-display |
| 26 |
|
| 27 |
@font-face |
| 28 |
font-family: 'Lato' |
| 29 |
- src: url('#{$lato-font-path}/lato-bold/lato-bold.woff2') format('woff2'), url('#{$lato-font-path}/lato-bold/lato-bold.woff') format('woff') |
| 30 |
+ src: url('../fonts/Lato-Bold.woff2') format('woff2'), url('../fonts/Lato-Bold.ttf') format('truetype') |
| 31 |
font-weight: 700 |
| 32 |
font-style: normal |
| 33 |
font-display: $font-display |
| 34 |
|
| 35 |
@font-face |
| 36 |
font-family: 'Lato' |
| 37 |
- src: url('#{$lato-font-path}/lato-bold-italic/lato-bold-italic.woff2') format('woff2'), url('#{$lato-font-path}/lato-bold-italic/lato-bold-italic.woff') format('woff') |
| 38 |
+ src: url('../fonts/Lato-BoldItalic.woff2') format('woff2'), url('../fonts/Lato-BoldItalic.ttf') format('truetype') |
| 39 |
font-weight: 700 |
| 40 |
font-style: italic |
| 41 |
font-display: $font-display |
| 42 |
|
| 43 |
@font-face |
| 44 |
font-family: 'Lato' |
| 45 |
- src: url('#{$lato-font-path}/lato-normal-italic/lato-normal-italic.woff2') format('woff2'), url('#{$lato-font-path}/lato-normal-italic/lato-normal-italic.woff') format('woff') |
| 46 |
+ src: url('../fonts/Lato-Italic.woff2') format('woff2'), url('../fonts/Lato-Italic.ttf') format('truetype') |
| 47 |
font-weight: 400 |
| 48 |
font-style: italic |
| 49 |
font-display: $font-display |
| 50 |
@@ -33,12 +30,12 @@ $roboto-font-path: "~roboto-fontface/fonts/roboto-slab" |
| 51 |
font-family: 'Roboto Slab' |
| 52 |
font-style: normal |
| 53 |
font-weight: 400 |
| 54 |
- src: url('#{$roboto-font-path}/Roboto-Slab-Regular.woff2') format('woff2'), url('#{$roboto-font-path}/Roboto-Slab-Regular.woff') format('woff') |
| 55 |
+ src: url('../fonts/RobotoSlab-Regular.woff2') format('woff2') |
| 56 |
font-display: $font-display |
| 57 |
|
| 58 |
@font-face |
| 59 |
font-family: 'Roboto Slab' |
| 60 |
font-style: normal |
| 61 |
font-weight: 700 |
| 62 |
- src: url('#{$roboto-font-path}/Roboto-Slab-Bold.woff2') format('woff2'), url('#{$roboto-font-path}/Roboto-Slab-Bold.woff') format('woff') |
| 63 |
+ src: url('../fonts/RobotoSlab-Bold.woff2') format('woff2') |
| 64 |
font-display: $font-display |