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:
parent
4b1bc7590a
commit
711553f6ed
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user