From 97e65b751358ff9d9abd56a8d413d8b333f35ccc Mon Sep 17 00:00:00 2001 From: Foster Hangdaan Date: Wed, 15 May 2024 12:48:11 -0400 Subject: [PATCH] Ensure text remains visible during webfont load --- _includes/styles/fonts.scss | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/_includes/styles/fonts.scss b/_includes/styles/fonts.scss index 8f473c9..e4a2a1e 100644 --- a/_includes/styles/fonts.scss +++ b/_includes/styles/fonts.scss @@ -5,6 +5,7 @@ @font-face { url('https://static.fosterhangdaan.com/fonts/mona-sans/latest/MonaSans%5Bslnt,wdth,wght%5D.woff2') format('woff2-variations'); font-weight: 200 900; font-stretch: 75% 125%; + font-display: swap; } @font-face { @@ -14,6 +15,7 @@ @font-face { url('https://static.fosterhangdaan.com/fonts/hubot-sans/latest/HubotSans%5Bslnt,wdth,wght%5D.woff2') format('woff2-variations'); font-weight: 200 900; font-stretch: 75% 125%; + font-display: swap; } @font-face { @@ -23,6 +25,7 @@ @font-face { url('https://static.fosterhangdaan.com/fonts/monaspace/v1.000/MonaspaceNeonVarVF%5Bwght,wdth,slnt%5D.woff2') format('woff2-variations'); font-weight: 200 800; font-stretch: 100% 125%; + font-display: swap; } @font-face { @@ -32,6 +35,7 @@ @font-face { url('https://static.fosterhangdaan.com/fonts/monaspace/v1.000/MonaspaceRadonVarVF%5Bwght,wdth,slnt%5D.woff2') format('woff2-variations'); font-weight: 200 800; font-stretch: 100% 125%; + font-display: swap; } @font-face { @@ -41,4 +45,5 @@ @font-face { url('https://static.fosterhangdaan.com/fonts/monaspace/v1.000/MonaspaceXenonVarVF%5Bwght,wdth,slnt%5D.woff2') format('woff2-variations'); font-weight: 200 800; font-stretch: 100% 125%; + font-display: swap; }