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
This commit is contained in:
Dmitry Shachnev 2018-06-29 14:54:26 +03:00 committed by zhouganqing
parent 0846e4a9a5
commit d53f640320
1 changed files with 6 additions and 12 deletions

View File

@ -1,29 +1,25 @@
@font-face @font-face
font-family: 'Lato' font-family: 'Lato'
src: url('../fonts/Lato/lato-regular.eot') src: url('../fonts/Lato-Regular.woff2') format('woff2'), url('../fonts/Lato-Regular.ttf') format('truetype')
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')
font-weight: 400 font-weight: 400
font-style: normal font-style: normal
@font-face @font-face
font-family: 'Lato' font-family: 'Lato'
src: url('../fonts/Lato/lato-bold.eot') src: url('../fonts/Lato-Bold.woff2') format('woff2'), url('../fonts/Lato-Bold.ttf') format('truetype')
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')
font-weight: 700 font-weight: 700
font-style: normal font-style: normal
@font-face @font-face
font-family: 'Lato' font-family: 'Lato'
src: url('../fonts/Lato/lato-bolditalic.eot') src: url('../fonts/Lato-BoldItalic.woff2') format('woff2'), url('../fonts/Lato-BoldItalic.ttf') format('truetype')
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')
font-weight: 700 font-weight: 700
font-style: italic font-style: italic
@font-face @font-face
font-family: 'Lato' font-family: 'Lato'
src: url('../fonts/Lato/lato-italic.eot') src: url('../fonts/Lato-Italic.woff2') format('woff2'), url('../fonts/Lato-Italic.ttf') format('truetype')
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')
font-weight: 400 font-weight: 400
font-style: italic font-style: italic
@ -31,12 +27,10 @@
font-family: 'Roboto Slab' font-family: 'Roboto Slab'
font-style: normal font-style: normal
font-weight: 400 font-weight: 400
src: url('../fonts/RobotoSlab/roboto-slab.eot') src: url('../fonts/RobotoSlab-Regular.woff2') format('woff2')
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-family: 'Roboto Slab'
font-style: normal font-style: normal
font-weight: 700 font-weight: 700
src: url('../fonts/RobotoSlab/roboto-slab-v7-bold.eot') src: url('../fonts/RobotoSlab-Bold.woff2') format('woff2')
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')