From d53f6403207125878be94b404cc526ee59e87740 Mon Sep 17 00:00:00 2001 From: Dmitry Shachnev Date: Fri, 29 Jun 2018 14:54:26 +0300 Subject: [PATCH] Use only TTF and WOFF2 fonts for Lato, only WOFF2 for RobotoSlab Also use different file names for compatibility with packages built against sphinx-rtd-theme 0.2.4. Gbp-Pq: Name fonts-only-ttf-woff2.patch --- sass/_theme_font_local.sass | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/sass/_theme_font_local.sass b/sass/_theme_font_local.sass index cf08f85..a83e2d2 100644 --- a/sass/_theme_font_local.sass +++ b/sass/_theme_font_local.sass @@ -1,29 +1,25 @@ @font-face font-family: 'Lato' - src: url('../fonts/Lato/lato-regular.eot') - src: url('../fonts/Lato/lato-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/Lato/lato-regular.woff2') format('woff2'), url('../fonts/Lato/lato-regular.woff') format('woff'), url('../fonts/Lato/lato-regular.ttf') format('truetype') + src: url('../fonts/Lato-Regular.woff2') format('woff2'), url('../fonts/Lato-Regular.ttf') format('truetype') font-weight: 400 font-style: normal @font-face font-family: 'Lato' - src: url('../fonts/Lato/lato-bold.eot') - src: url('../fonts/Lato/lato-bold.eot?#iefix') format('embedded-opentype'), url('../fonts/Lato/lato-bold.woff2') format('woff2'), url('../fonts/Lato/lato-bold.woff') format('woff'), url('../fonts/Lato/lato-bold.ttf') format('truetype') + src: url('../fonts/Lato-Bold.woff2') format('woff2'), url('../fonts/Lato-Bold.ttf') format('truetype') font-weight: 700 font-style: normal @font-face font-family: 'Lato' - src: url('../fonts/Lato/lato-bolditalic.eot') - src: url('../fonts/Lato/lato-bolditalic.eot?#iefix') format('embedded-opentype'), url('../fonts/Lato/lato-bolditalic.woff2') format('woff2'), url('../fonts/Lato/lato-bolditalic.woff') format('woff'), url('../fonts/Lato/lato-bolditalic.ttf') format('truetype') + src: url('../fonts/Lato-BoldItalic.woff2') format('woff2'), url('../fonts/Lato-BoldItalic.ttf') format('truetype') font-weight: 700 font-style: italic @font-face font-family: 'Lato' - src: url('../fonts/Lato/lato-italic.eot') - src: url('../fonts/Lato/lato-italic.eot?#iefix') format('embedded-opentype'), url('../fonts/Lato/lato-italic.woff2') format('woff2'), url('../fonts/Lato/lato-italic.woff') format('woff'), url('../fonts/Lato/lato-italic.ttf') format('truetype') + src: url('../fonts/Lato-Italic.woff2') format('woff2'), url('../fonts/Lato-Italic.ttf') format('truetype') font-weight: 400 font-style: italic @@ -31,12 +27,10 @@ font-family: 'Roboto Slab' font-style: normal font-weight: 400 - 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') + src: url('../fonts/RobotoSlab-Regular.woff2') format('woff2') @font-face font-family: 'Roboto Slab' font-style: normal font-weight: 700 - 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') + src: url('../fonts/RobotoSlab-Bold.woff2') format('woff2')