From af5a4cfad5e4d2987dd213aeede2ee8ff5255390 Mon Sep 17 00:00:00 2001 From: Jannis Jorre Date: Fri, 20 May 2022 13:27:30 +0200 Subject: [PATCH] use font-display swap for inter --- lib/IHP/static/IDE/inter.css | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/IHP/static/IDE/inter.css b/lib/IHP/static/IDE/inter.css index 72e89f443..ccbbff59c 100644 --- a/lib/IHP/static/IDE/inter.css +++ b/lib/IHP/static/IDE/inter.css @@ -10,6 +10,7 @@ url('/IDE/fonts/inter/inter-v8-latin-100.woff') format('woff'), /* Modern Browsers */ url('/IDE/fonts/inter/inter-v8-latin-100.ttf') format('truetype'), /* Safari, Android, iOS */ url('/IDE/fonts/inter/inter-v8-latin-100.svg#Inter') format('svg'); /* Legacy iOS */ + font-display: swap; } /* inter-200 - latin */ @font-face { @@ -23,6 +24,7 @@ url('/IDE/fonts/inter/inter-v8-latin-200.woff') format('woff'), /* Modern Browsers */ url('/IDE/fonts/inter/inter-v8-latin-200.ttf') format('truetype'), /* Safari, Android, iOS */ url('/IDE/fonts/inter/inter-v8-latin-200.svg#Inter') format('svg'); /* Legacy iOS */ + font-display: swap; } /* inter-300 - latin */ @font-face { @@ -36,6 +38,7 @@ url('/IDE/fonts/inter/inter-v8-latin-300.woff') format('woff'), /* Modern Browsers */ url('/IDE/fonts/inter/inter-v8-latin-300.ttf') format('truetype'), /* Safari, Android, iOS */ url('/IDE/fonts/inter/inter-v8-latin-300.svg#Inter') format('svg'); /* Legacy iOS */ + font-display: swap; } /* inter-regular - latin */ @font-face { @@ -49,6 +52,7 @@ url('/IDE/fonts/inter/inter-v8-latin-regular.woff') format('woff'), /* Modern Browsers */ url('/IDE/fonts/inter/inter-v8-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */ url('/IDE/fonts/inter/inter-v8-latin-regular.svg#Inter') format('svg'); /* Legacy iOS */ + font-display: swap; } /* inter-500 - latin */ @font-face { @@ -62,6 +66,7 @@ url('/IDE/fonts/inter/inter-v8-latin-500.woff') format('woff'), /* Modern Browsers */ url('/IDE/fonts/inter/inter-v8-latin-500.ttf') format('truetype'), /* Safari, Android, iOS */ url('/IDE/fonts/inter/inter-v8-latin-500.svg#Inter') format('svg'); /* Legacy iOS */ + font-display: swap; } /* inter-600 - latin */ @font-face { @@ -75,6 +80,7 @@ url('/IDE/fonts/inter/inter-v8-latin-600.woff') format('woff'), /* Modern Browsers */ url('/IDE/fonts/inter/inter-v8-latin-600.ttf') format('truetype'), /* Safari, Android, iOS */ url('/IDE/fonts/inter/inter-v8-latin-600.svg#Inter') format('svg'); /* Legacy iOS */ + font-display: swap; } /* inter-700 - latin */ @font-face { @@ -88,6 +94,7 @@ url('/IDE/fonts/inter/inter-v8-latin-700.woff') format('woff'), /* Modern Browsers */ url('/IDE/fonts/inter/inter-v8-latin-700.ttf') format('truetype'), /* Safari, Android, iOS */ url('/IDE/fonts/inter/inter-v8-latin-700.svg#Inter') format('svg'); /* Legacy iOS */ + font-display: swap; } /* inter-800 - latin */ @font-face { @@ -101,6 +108,7 @@ url('/IDE/fonts/inter/inter-v8-latin-800.woff') format('woff'), /* Modern Browsers */ url('/IDE/fonts/inter/inter-v8-latin-800.ttf') format('truetype'), /* Safari, Android, iOS */ url('/IDE/fonts/inter/inter-v8-latin-800.svg#Inter') format('svg'); /* Legacy iOS */ + font-display: swap; } /* inter-900 - latin */ @font-face { @@ -114,4 +122,5 @@ url('/IDE/fonts/inter/inter-v8-latin-900.woff') format('woff'), /* Modern Browsers */ url('/IDE/fonts/inter/inter-v8-latin-900.ttf') format('truetype'), /* Safari, Android, iOS */ url('/IDE/fonts/inter/inter-v8-latin-900.svg#Inter') format('svg'); /* Legacy iOS */ + font-display: swap; } \ No newline at end of file