fix font size flickering bug

This commit is contained in:
Michael Peters 2021-12-30 21:16:32 -06:00
parent ca7c683526
commit 7acb245c76

View File

@ -1,30 +1,35 @@
@font-face {
font-family: Whitney;
font-weight: 300;
font-display: block; // Uses an invisible font until it's loaded. See https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display
src: url(./font/whitney/whitney-300.woff);
}
@font-face {
font-family: Whitney;
font-weight: 400;
font-display: block;
src: url(./font/whitney/whitney-400.woff);
}
@font-face {
font-family: Whitney;
font-weight: 500;
font-display: block;
src: url(./font/whitney/whitney-500.woff);
}
@font-face {
font-family: Whitney;
font-weight: 600;
font-display: block;
src: url(./font/whitney/whitney-600.woff);
}
@font-face {
font-family: Whitney;
font-weight: 700;
font-display: block;
src: url(./font/whitney/whitney-700.woff);
}