"font-display: swap" hinzu

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.
This commit is contained in:
Jens Kubieziel 2022-02-24 18:40:46 +01:00
parent f0c7de0bd1
commit 21890d7af0

View file

@ -9,21 +9,25 @@
@font-face { @font-face {
font-family: 'EB Garamond Medium'; font-family: 'EB Garamond Medium';
src: url('./fonts/garamond/static/EBGaramond-Medium.ttf'); src: url('./fonts/garamond/static/EBGaramond-Medium.ttf');
font-display: swap;
} }
@font-face { @font-face {
font-family: 'EB Garamond Medium Italic'; font-family: 'EB Garamond Medium Italic';
src: url('./fonts/garamond/static/EBGaramond-MediumItalic.ttf'); src: url('./fonts/garamond/static/EBGaramond-MediumItalic.ttf');
font-display: swap;
} }
@font-face { @font-face {
font-family: 'Signika Light'; font-family: 'Signika Light';
src: url('./fonts/signika/static/Signika-Light.ttf'); src: url('./fonts/signika/static/Signika-Light.ttf');
font-display: swap;
} }
@font-face { @font-face {
font-family: 'Signika Medium'; font-family: 'Signika Medium';
src: url('./fonts/signika/static/Signika-Medium.ttf'); src: url('./fonts/signika/static/Signika-Medium.ttf');
font-display: swap;
} }
/*** general ***/ /*** general ***/