From 21890d7af0a02b39aaa60a5f5e1d22a70ca80876 Mon Sep 17 00:00:00 2001 From: qbi Date: Thu, 24 Feb 2022 18:40:46 +0100 Subject: [PATCH] "font-display: swap" hinzu MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Die Option sorgt dafür, dass immer Schriften angezeigt werden. Zunächst kommen die Systemschriften und wenn die anderen geladen sind, werden die dann angezeigt. --- public/style.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/style.css b/public/style.css index 228f11e..5bbf891 100644 --- a/public/style.css +++ b/public/style.css @@ -9,21 +9,25 @@ @font-face { font-family: 'EB Garamond Medium'; src: url('./fonts/garamond/static/EBGaramond-Medium.ttf'); + font-display: swap; } @font-face { font-family: 'EB Garamond Medium Italic'; src: url('./fonts/garamond/static/EBGaramond-MediumItalic.ttf'); + font-display: swap; } @font-face { font-family: 'Signika Light'; src: url('./fonts/signika/static/Signika-Light.ttf'); + font-display: swap; } @font-face { font-family: 'Signika Medium'; src: url('./fonts/signika/static/Signika-Medium.ttf'); + font-display: swap; } /*** general ***/