From 2f1f2d3f23e3327f17a20b78b5491b2a506f26d9 Mon Sep 17 00:00:00 2001 From: Pizzacus Date: Tue, 9 Jul 2019 14:14:19 +0200 Subject: [PATCH] Set font-feature-settings in @font-face instead --- source/css/fonts.css | 18 ++++++++++++------ source/css/main.css | 2 -- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/source/css/fonts.css b/source/css/fonts.css index 3a70a46..c46eddf 100644 --- a/source/css/fonts.css +++ b/source/css/fonts.css @@ -1,44 +1,50 @@ @font-face { font-family: 'Inter'; - font-style: normal; + font-style: normal; font-weight: 400; + font-feature-settings: "liga", "tnum", "case", "calt", "zero", "ss01", "locl"; src: url("../fonts/Inter-Regular.woff2") format("woff2"), url("../fonts/Inter-Regular.woff") format("woff"); } @font-face { font-family: 'Inter'; - font-style: italic; + font-style: italic; font-weight: 400; + font-feature-settings: "liga", "tnum", "case", "calt", "zero", "ss01", "locl"; src: url("../fonts/Inter-Italic.woff2") format("woff2"), url("../fonts/Inter-Italic.woff") format("woff"); } @font-face { font-family: 'Inter'; - font-style: normal; + font-style: normal; font-weight: 600; + font-feature-settings: "liga", "tnum", "case", "calt", "zero", "ss01", "locl"; src: url("../fonts/Inter-Medium.woff2") format("woff2"), url("../fonts/Inter-Medium.woff") format("woff"); } @font-face { font-family: 'Inter'; - font-style: italic; + font-style: italic; font-weight: 600; + font-feature-settings: "liga", "tnum", "case", "calt", "zero", "ss01", "locl"; src: url("../fonts/Inter-MediumItalic.woff2") format("woff2"), url("../fonts/Inter-MediumItalic.woff") format("woff"); } @font-face { font-family: 'Inter'; - font-style: normal; + font-style: normal; font-weight: 800; + font-feature-settings: "liga", "tnum", "case", "calt", "zero", "ss01", "locl"; src: url("../fonts/Inter-Bold.woff2") format("woff2"), url("../fonts/Inter-Bold.woff") format("woff"); } @font-face { font-family: 'Inter'; - font-style: italic; + font-style: italic; font-weight: 800; + font-feature-settings: "liga", "tnum", "case", "calt", "zero", "ss01", "locl"; src: url("../fonts/Inter-BoldItalic.woff2") format("woff2"), url("../fonts/Inter-BoldItalic.woff") format("woff"); } diff --git a/source/css/main.css b/source/css/main.css index 64d4848..2d169e0 100644 --- a/source/css/main.css +++ b/source/css/main.css @@ -19,7 +19,6 @@ body { color: var(--light-color); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; - font-feature-settings: "liga", "tnum", "case", "calt", "zero", "ss01", "locl"; -webkit-overflow-scrolling: touch; -webkit-text-size-adjust: 100%; @@ -132,7 +131,6 @@ figure { code { font-family: Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace; - font-feature-settings: normal; background: var(--light-background-secondary); padding: 1px 6px; margin: 0 2px;