Added font-display: swap to allow drawing text before loading font in css

Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
This commit is contained in:
Louis Vallat 2021-09-23 19:58:34 +02:00
parent 4b1bc7590a
commit 711553f6ed
No known key found for this signature in database
GPG Key ID: 0C87282F76E61283

View File

@ -6,12 +6,14 @@
font-family: "Roboto";
src: url("/assets/fonts/Roboto-Regular.ttf");
font-weight: 400;
font-display: swap;
}
@font-face {
font-family: "Roboto";
src: url("/assets/fonts/Roboto-Medium.ttf");
font-weight: 500;
font-display: swap;
}
html {