From edf40ac5db7489971d105e1a573f739745c62d1f Mon Sep 17 00:00:00 2001 From: subin sv Date: Sun, 3 Nov 2019 15:44:58 +0530 Subject: [PATCH] Avoid Invisible text during loading (FOIT) --- source/css/fonts.css | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/css/fonts.css b/source/css/fonts.css index c46eddf..2b0baea 100644 --- a/source/css/fonts.css +++ b/source/css/fonts.css @@ -5,6 +5,7 @@ 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-display: swap; } @font-face { font-family: 'Inter'; @@ -13,6 +14,7 @@ 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-display: swap; } @font-face { @@ -22,6 +24,7 @@ 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-display: swap; } @font-face { font-family: 'Inter'; @@ -30,6 +33,7 @@ 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-display: swap; } @font-face { @@ -39,6 +43,7 @@ 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-display: swap; } @font-face { font-family: 'Inter'; @@ -47,4 +52,5 @@ 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"); + font-display: swap; }