diff --git a/src/vfs/physical.rs b/src/vfs/physical.rs index 6cc6c4b..90c9fc7 100644 --- a/src/vfs/physical.rs +++ b/src/vfs/physical.rs @@ -97,7 +97,7 @@ fn guess_content_type(extension: &str) -> Option<&'static str> { "html" => Some("text/html"), "js" => Some("text/javascript"), "css" => Some("text/css"), - "woff" => Some("font/woff2"), + "woff2" => Some("font/woff2"), "svg" => Some("image/svg+xml"), "atom" => Some("application/atom+xml"), "png" => Some("image/png"), diff --git a/static/css/noncritical.css b/static/css/noncritical.css index c3db7f7..689b3ad 100644 --- a/static/css/noncritical.css +++ b/static/css/noncritical.css @@ -141,7 +141,6 @@ input { font-weight: 450; font-style: normal; --recursive-mono: 0; - --recursive-casl: 0; --recursive-crsv: 0.5; } @@ -150,9 +149,7 @@ input { *:after { font-variation-settings: "MONO" var(--recursive-mono), - "CASL" var(--recursive-casl), "CRSV" var(--recursive-crsv); - font-feature-settings: "ss03", "ss04", "ss05", "ss06", "ss08"; } diff --git a/static/css/page/tairu.css b/static/css/page/tairu.css index bdad595..430f240 100644 --- a/static/css/page/tairu.css +++ b/static/css/page/tairu.css @@ -110,7 +110,6 @@ & .directions-square { font-weight: 900; font-style: normal; - --recursive-casl: 0; --recursive-mono: 1; color: #d3dce9; text-shadow: diff --git a/static/font/README.txt b/static/font/README.txt new file mode 100644 index 0000000..94bbc90 --- /dev/null +++ b/static/font/README.txt @@ -0,0 +1,6 @@ +To produce recursive-casl0.woff2: + + fonttools varLib.instancer Recursive_VF_1.085.woff2 -o recursive-casl0.woff2 CASL=0 + +Further optimisations can be done to the font, but removing the CASL axis makes the biggest difference. +It is not used anywhere on the website anyways, and saves about half the download size of the font. diff --git a/static/font/recursive-casl0.woff2 b/static/font/recursive-casl0.woff2 new file mode 100644 index 0000000..a30c95a Binary files /dev/null and b/static/font/recursive-casl0.woff2 differ diff --git a/template/components/_head.hbs b/template/components/_head.hbs index 7a34a8e..a0d2d34 100644 --- a/template/components/_head.hbs +++ b/template/components/_head.hbs @@ -7,7 +7,7 @@