From b068f8e0a5c64960c306f8658f3ec598d43e43b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Tue, 8 Feb 2022 11:35:15 +0100 Subject: [PATCH] [ui] only enable font features for inter --- webui/public/assets/fonts/inter.css | 20 ++++++++++++++++++++ webui/src/styles/fonts.scss | 1 - 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/webui/public/assets/fonts/inter.css b/webui/public/assets/fonts/inter.css index 66c7fb6..a1ca71f 100644 --- a/webui/public/assets/fonts/inter.css +++ b/webui/public/assets/fonts/inter.css @@ -3,6 +3,7 @@ font-style: normal; font-weight: 100; font-display: swap; + font-feature-settings: "ss02" on, "case" on; src: url("Inter-Thin.woff2?v=3.15") format("woff2"), url("Inter-Thin.woff?v=3.15") format("woff"); } @@ -11,6 +12,7 @@ font-style: italic; font-weight: 100; font-display: swap; + font-feature-settings: "ss02" on, "case" on; src: url("Inter-ThinItalic.woff2?v=3.15") format("woff2"), url("Inter-ThinItalic.woff?v=3.15") format("woff"); } @@ -20,6 +22,7 @@ font-style: normal; font-weight: 200; font-display: swap; + font-feature-settings: "ss02" on, "case" on; src: url("Inter-ExtraLight.woff2?v=3.15") format("woff2"), url("Inter-ExtraLight.woff?v=3.15") format("woff"); } @@ -28,6 +31,7 @@ font-style: italic; font-weight: 200; font-display: swap; + font-feature-settings: "ss02" on, "case" on; src: url("Inter-ExtraLightItalic.woff2?v=3.15") format("woff2"), url("Inter-ExtraLightItalic.woff?v=3.15") format("woff"); } @@ -37,6 +41,7 @@ font-style: normal; font-weight: 300; font-display: swap; + font-feature-settings: "ss02" on, "case" on; src: url("Inter-Light.woff2?v=3.15") format("woff2"), url("Inter-Light.woff?v=3.15") format("woff"); } @@ -45,6 +50,7 @@ font-style: italic; font-weight: 300; font-display: swap; + font-feature-settings: "ss02" on, "case" on; src: url("Inter-LightItalic.woff2?v=3.15") format("woff2"), url("Inter-LightItalic.woff?v=3.15") format("woff"); } @@ -54,6 +60,7 @@ font-style: normal; font-weight: 400; font-display: swap; + font-feature-settings: "ss02" on, "case" on; src: url("Inter-Regular.woff2?v=3.15") format("woff2"), url("Inter-Regular.woff?v=3.15") format("woff"); } @@ -62,6 +69,7 @@ font-style: italic; font-weight: 400; font-display: swap; + font-feature-settings: "ss02" on, "case" on; src: url("Inter-Italic.woff2?v=3.15") format("woff2"), url("Inter-Italic.woff?v=3.15") format("woff"); } @@ -71,6 +79,7 @@ font-style: normal; font-weight: 500; font-display: swap; + font-feature-settings: "ss02" on, "case" on; src: url("Inter-Medium.woff2?v=3.15") format("woff2"), url("Inter-Medium.woff?v=3.15") format("woff"); } @@ -79,6 +88,7 @@ font-style: italic; font-weight: 500; font-display: swap; + font-feature-settings: "ss02" on, "case" on; src: url("Inter-MediumItalic.woff2?v=3.15") format("woff2"), url("Inter-MediumItalic.woff?v=3.15") format("woff"); } @@ -88,6 +98,7 @@ font-style: normal; font-weight: 600; font-display: swap; + font-feature-settings: "ss02" on, "case" on; src: url("Inter-SemiBold.woff2?v=3.15") format("woff2"), url("Inter-SemiBold.woff?v=3.15") format("woff"); } @@ -96,6 +107,7 @@ font-style: italic; font-weight: 600; font-display: swap; + font-feature-settings: "ss02" on, "case" on; src: url("Inter-SemiBoldItalic.woff2?v=3.15") format("woff2"), url("Inter-SemiBoldItalic.woff?v=3.15") format("woff"); } @@ -105,6 +117,7 @@ font-style: normal; font-weight: 700; font-display: swap; + font-feature-settings: "ss02" on, "case" on; src: url("Inter-Bold.woff2?v=3.15") format("woff2"), url("Inter-Bold.woff?v=3.15") format("woff"); } @@ -113,6 +126,7 @@ font-style: italic; font-weight: 700; font-display: swap; + font-feature-settings: "ss02" on, "case" on; src: url("Inter-BoldItalic.woff2?v=3.15") format("woff2"), url("Inter-BoldItalic.woff?v=3.15") format("woff"); } @@ -122,6 +136,7 @@ font-style: normal; font-weight: 800; font-display: swap; + font-feature-settings: "ss02" on, "case" on; src: url("Inter-ExtraBold.woff2?v=3.15") format("woff2"), url("Inter-ExtraBold.woff?v=3.15") format("woff"); } @@ -130,6 +145,7 @@ font-style: italic; font-weight: 800; font-display: swap; + font-feature-settings: "ss02" on, "case" on; src: url("Inter-ExtraBoldItalic.woff2?v=3.15") format("woff2"), url("Inter-ExtraBoldItalic.woff?v=3.15") format("woff"); } @@ -139,6 +155,7 @@ font-style: normal; font-weight: 900; font-display: swap; + font-feature-settings: "ss02" on, "case" on; src: url("Inter-Black.woff2?v=3.15") format("woff2"), url("Inter-Black.woff?v=3.15") format("woff"); } @@ -147,6 +164,7 @@ font-style: italic; font-weight: 900; font-display: swap; + font-feature-settings: "ss02" on, "case" on; src: url("Inter-BlackItalic.woff2?v=3.15") format("woff2"), url("Inter-BlackItalic.woff?v=3.15") format("woff"); } @@ -166,6 +184,7 @@ Usage: font-display: swap; font-style: normal; font-named-instance: 'Regular'; + font-feature-settings: "ss02" on, "case" on; src: url("Inter-roman.var.woff2?v=3.15") format("woff2"); } @font-face { @@ -174,6 +193,7 @@ Usage: font-display: swap; font-style: italic; font-named-instance: 'Italic'; + font-feature-settings: "ss02" on, "case" on; src: url("Inter-italic.var.woff2?v=3.15") format("woff2"); } diff --git a/webui/src/styles/fonts.scss b/webui/src/styles/fonts.scss index fecba7f..ce182b4 100644 --- a/webui/src/styles/fonts.scss +++ b/webui/src/styles/fonts.scss @@ -9,7 +9,6 @@ html { @supports (font-variation-settings: normal) { html { --default-font: "Inter var", sans-serif; - font-feature-settings: "ss02" on, "case" on; } }