experiment with font-display: swap

I don't know how jarring this will be in reality but let's give it a shot
This commit is contained in:
りき萌 2025-10-07 11:17:18 +02:00
parent be8ae113b7
commit da2e86ba0f

View file

@ -12,13 +12,15 @@
font-family: "RecVar-Full"; font-family: "RecVar-Full";
src: url("{{{ asset 'font/recursive-casl0.woff2' }}}"); src: url("{{{ asset 'font/recursive-casl0.woff2' }}}");
font-display: swap; font-display: swap;
unicode-range: U+0-10FFFF; unicode-range: U+0-10FFFF;
} }
@font-face { @font-face {
font-family: "RecVar-Crit"; font-family: "RecVar-Crit";
src: url("{{{ asset 'font/recursive-crit.woff2' }}}"); src: url("{{{ asset 'font/recursive-crit.woff2' }}}");
font-display: block; font-display: swap;
font-weight: 400 900; font-weight: 400 900;
font-style: normal; font-style: normal;
unicode-range: U+20-7E, U+2000-206F; unicode-range: U+20-7E, U+2000-206F;
@ -27,7 +29,8 @@
@font-face { @font-face {
font-family: "RecVar-Crit"; font-family: "RecVar-Crit";
src: url("{{{ asset 'font/recursive-casl0.woff2' }}}"); src: url("{{{ asset 'font/recursive-casl0.woff2' }}}");
font-display: block; font-display: swap;
font-style: normal; font-style: normal;
unicode-range: U+80-1FFF, U+2070-10FFFF; unicode-range: U+80-1FFF, U+2070-10FFFF;
} }
@ -36,6 +39,7 @@
font-family: "RecVar-Title"; font-family: "RecVar-Title";
src: url("{{{ asset 'font/recursive-title.woff2' }}}"); src: url("{{{ asset 'font/recursive-title.woff2' }}}");
font-display: block; font-display: block;
font-weight: 800 900; font-weight: 800 900;
font-style: normal; font-style: normal;
unicode-range: U+20, U+27, U+65, U+66, U+68, U+69, U+6B, U+6C, U+6F, U+72, U+73, U+74, U+75, U+79; unicode-range: U+20, U+27, U+65, U+66, U+68, U+69, U+6B, U+6C, U+6F, U+72, U+73, U+74, U+75, U+79;