about summary refs log tree commit diff
path: root/web
diff options
context:
space:
mode:
authorBarry Pollard <barrypollard@google.com>2024-12-10 21:17:58 +0000
committerGitHub <noreply@github.com>2024-12-10 21:17:58 +0000
commitbee50c39541c96c0e3aec47070f738c09e6555c5 (patch)
tree3b71b90a372d14b223609abb8aa6444a7fec68ea /web
parent6308e91de68c3b5a487b485ce6b47361ae635153 (diff)
downloadvoidsky-bee50c39541c96c0e3aec47070f738c09e6555c5.tar.zst
Font loading improvements (#6993)
* Font loading improvements

* Reconvert with missing files

* Update bskyweb/templates/base.html

Co-authored-by: Rick Viscomi <rviscomi@users.noreply.github.com>

* Update bskyweb/templates/base.html

Co-authored-by: Rick Viscomi <rviscomi@users.noreply.github.com>

* Run web-build to update hashes

* Revert Android to otf

* Use Inter woff2 files

---------

Co-authored-by: Rick Viscomi <rviscomi@users.noreply.github.com>
Diffstat (limited to 'web')
-rw-r--r--web/index.html7
1 files changed, 3 insertions, 4 deletions
diff --git a/web/index.html b/web/index.html
index 293f366ad..8bde07d2b 100644
--- a/web/index.html
+++ b/web/index.html
@@ -18,8 +18,7 @@
     <link rel="preconnect" href="https://bsky.network">
     <title>%WEB_TITLE%</title>
 
-    <link rel="preload" as="font" type="font/ttf" href="/static/media/InterVariable.c9f788f6e7ebaec75d7c.ttf">
-    <link rel="preload" as="font" type="font/ttf" href="/static/media/InterVariable-Italic.55d6a3f35e9b605ba6f4.ttf">
+    <link rel="preload" as="font" type="font/woff2" href="/static/media/InterVariable.c504db5c06caaf7cdfba.woff2" crossorigin>
 
     <style>
       /**
@@ -31,14 +30,14 @@
        */
       @font-face {
         font-family: 'InterVariable';
-        src: url(/static/media/InterVariable.c9f788f6e7ebaec75d7c.ttf) format('truetype');
+        src: url(/static/media/InterVariable.c504db5c06caaf7cdfba.woff2) format('woff2');
         font-weight: 300 1000;
         font-style: normal;
         font-display: swap;
       }
       @font-face {
         font-family: 'InterVariableItalic';
-        src: url(/static/media/InterVariable-Italic.55d6a3f35e9b605ba6f4.ttf) format('truetype');
+        src: url(/static/media/InterVariable-Italic.01dcbad1bac635f9c9cd.woff2) format('woff2');
         font-weight: 300 1000;
         font-style: italic;
         font-display: swap;