From da2e86ba0f4d88be9a52b6ce4b8ea1b86b0420c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=8A=E3=81=8D=E8=90=8C?= Date: Tue, 7 Oct 2025 11:17:18 +0200 Subject: [PATCH] experiment with font-display: swap I don't know how jarring this will be in reality but let's give it a shot --- template/components/_head.hbs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/template/components/_head.hbs b/template/components/_head.hbs index 3604991..b0faa4e 100644 --- a/template/components/_head.hbs +++ b/template/components/_head.hbs @@ -12,13 +12,15 @@ font-family: "RecVar-Full"; src: url("{{{ asset 'font/recursive-casl0.woff2' }}}"); font-display: swap; + unicode-range: U+0-10FFFF; } @font-face { font-family: "RecVar-Crit"; src: url("{{{ asset 'font/recursive-crit.woff2' }}}"); - font-display: block; + font-display: swap; + font-weight: 400 900; font-style: normal; unicode-range: U+20-7E, U+2000-206F; @@ -27,7 +29,8 @@ @font-face { font-family: "RecVar-Crit"; src: url("{{{ asset 'font/recursive-casl0.woff2' }}}"); - font-display: block; + font-display: swap; + font-style: normal; unicode-range: U+80-1FFF, U+2070-10FFFF; } @@ -36,6 +39,7 @@ font-family: "RecVar-Title"; src: url("{{{ asset 'font/recursive-title.woff2' }}}"); font-display: block; + font-weight: 800 900; 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;