From 8463c8e20466d883377bcfda6d0d1d14dffe6d9a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Thu, 13 Oct 2022 07:38:55 +0200 Subject: [PATCH 1/1] Add font-display: swap CSS directive --- Resources/public/css/droidsans.css | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Resources/public/css/droidsans.css b/Resources/public/css/droidsans.css index 26cea93..ffc1dcf 100644 --- a/Resources/public/css/droidsans.css +++ b/Resources/public/css/droidsans.css @@ -4,6 +4,7 @@ font-weight: 400; src: local('Droid Sans Regular'), local('DroidSans-Regular'), url(/bundles/rapsysair/woff2/droidsans.regular.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; + font-display: swap; } @font-face { font-family: 'Droid Sans'; @@ -11,6 +12,7 @@ font-weight: 700; src: local('Droid Sans Bold'), local('DroidSans-Bold'), url(/bundles/rapsysair/woff2/droidsans.bold.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; + font-display: swap; } @font-face { font-family: 'Droid Sans Mono'; @@ -18,6 +20,7 @@ font-weight: 400; src: local('Droid Sans Mono Regular'), local('DroidSansMono-Regular'), url(/bundles/rapsysair/woff2/droidsansmono.regular.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; + font-display: swap; } @font-face { font-family: 'Droid Serif'; @@ -25,6 +28,7 @@ font-weight: 400; src: local('Droid Serif Italic'), local('DroidSerif-Italic'), url(/bundles/rapsysair/woff2/droidserif.italic.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; + font-display: swap; } @font-face { font-family: 'Droid Serif'; @@ -32,6 +36,7 @@ font-weight: 700; src: local('Droid Serif Bold Italic'), local('DroidSerif-BoldItalic'), url(/bundles/rapsysair/woff2/droidserif.bolditalic.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; + font-display: swap; } @font-face { font-family: 'Droid Serif'; @@ -39,6 +44,7 @@ font-weight: 400; src: local('Droid Serif Regular'), local('DroidSerif-Regular'), url(/bundles/rapsysair/woff2/droidserif.regular.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; + font-display: swap; } @font-face { font-family: 'Droid Serif'; @@ -46,4 +52,5 @@ font-weight: 700; src: local('Droid Serif Bold'), local('DroidSerif-Bold'), url(/bundles/rapsysair/woff2/droidserif.bold.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; + font-display: swap; } -- 2.41.1