add font-display to avoid FOIT

This commit is contained in:
Robert Kaussow 2020-01-12 22:37:45 +01:00
parent 8460fdfb75
commit 2bf1b71163

View File

@ -3,6 +3,7 @@
src: url("fonts/LiberationSans-Bold.woff2") format("woff2"), url("fonts/LiberationSans-Bold.woff") format("woff"); src: url("fonts/LiberationSans-Bold.woff2") format("woff2"), url("fonts/LiberationSans-Bold.woff") format("woff");
font-weight: bold; font-weight: bold;
font-style: normal; font-style: normal;
font-display: swap;
} }
@font-face { @font-face {
@ -11,6 +12,7 @@
url("fonts/LiberationSans-BoldItalic.woff") format("woff"); url("fonts/LiberationSans-BoldItalic.woff") format("woff");
font-weight: bold; font-weight: bold;
font-style: italic; font-style: italic;
font-display: swap;
} }
@font-face { @font-face {
@ -18,6 +20,7 @@
src: url("fonts/LiberationSans-Italic.woff2") format("woff2"), url("fonts/LiberationSans-Italic.woff") format("woff"); src: url("fonts/LiberationSans-Italic.woff2") format("woff2"), url("fonts/LiberationSans-Italic.woff") format("woff");
font-weight: normal; font-weight: normal;
font-style: italic; font-style: italic;
font-display: swap;
} }
@font-face { @font-face {
@ -25,6 +28,7 @@
src: url("fonts/LiberationSans.woff2") format("woff2"), url("fonts/LiberationSans.woff") format("woff"); src: url("fonts/LiberationSans.woff2") format("woff2"), url("fonts/LiberationSans.woff") format("woff");
font-weight: normal; font-weight: normal;
font-style: normal; font-style: normal;
font-display: swap;
} }
@font-face { @font-face {
@ -32,6 +36,7 @@
src: url("fonts/DroidSerif.woff2") format("woff2"), url("fonts/DroidSerif.woff") format("woff"); src: url("fonts/DroidSerif.woff2") format("woff2"), url("fonts/DroidSerif.woff") format("woff");
font-weight: normal; font-weight: normal;
font-style: normal; font-style: normal;
font-display: swap;
} }
@font-face { @font-face {
@ -39,6 +44,7 @@
src: url("fonts/LiberationMono.woff2") format("woff2"), url("fonts/LiberationMono.woff") format("woff"); src: url("fonts/LiberationMono.woff2") format("woff2"), url("fonts/LiberationMono.woff") format("woff");
font-weight: normal; font-weight: normal;
font-style: normal; font-style: normal;
font-display: swap;
} }
body { body {