about summary refs log tree commit diff
path: root/bskyweb
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 /bskyweb
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 'bskyweb')
-rw-r--r--bskyweb/static/media/InterVariable-Italic.01dcbad1bac635f9c9cd.woff2bin0 -> 387976 bytes
-rw-r--r--bskyweb/static/media/InterVariable.c504db5c06caaf7cdfba.woff2bin0 -> 352240 bytes
-rw-r--r--bskyweb/templates/base.html7
3 files changed, 3 insertions, 4 deletions
diff --git a/bskyweb/static/media/InterVariable-Italic.01dcbad1bac635f9c9cd.woff2 b/bskyweb/static/media/InterVariable-Italic.01dcbad1bac635f9c9cd.woff2
new file mode 100644
index 000000000..b3530f3f5
--- /dev/null
+++ b/bskyweb/static/media/InterVariable-Italic.01dcbad1bac635f9c9cd.woff2
Binary files differdiff --git a/bskyweb/static/media/InterVariable.c504db5c06caaf7cdfba.woff2 b/bskyweb/static/media/InterVariable.c504db5c06caaf7cdfba.woff2
new file mode 100644
index 000000000..5a8d3e72a
--- /dev/null
+++ b/bskyweb/static/media/InterVariable.c504db5c06caaf7cdfba.woff2
Binary files differdiff --git a/bskyweb/templates/base.html b/bskyweb/templates/base.html
index 8eb78fffd..1ddd29171 100644
--- a/bskyweb/templates/base.html
+++ b/bskyweb/templates/base.html
@@ -13,8 +13,7 @@
 
   <!-- Hello Humans! API docs at https://atproto.com -->
 
-  <link rel="preload" as="font" type="font/ttf" href="{{ staticCDNHost }}/static/media/InterVariable.c9f788f6e7ebaec75d7c.ttf">
-  <link rel="preload" as="font" type="font/ttf" href="{{ staticCDNHost }}/static/media/InterVariable-Italic.55d6a3f35e9b605ba6f4.ttf">
+  <link rel="preload" as="font" type="font/ttf" href="{{ staticCDNHost }}/static/media/InterVariable.c504db5c06caaf7cdfba.woff2">
 
   <style>
     /**
@@ -26,14 +25,14 @@
      */
     @font-face {
       font-family: 'InterVariable';
-      src: url("{{ staticCDNHost }}/static/media/InterVariable.c9f788f6e7ebaec75d7c.ttf") format('truetype');
+      src: url("{{ staticCDNHost }}/static/media/InterVariable.c504db5c06caaf7cdfba.woff2") format('woff2');
       font-weight: 300 1000;
       font-style: normal;
       font-display: swap;
     }
     @font-face {
       font-family: 'InterVariableItalic';
-      src: url("{{ staticCDNHost }}/static/media/InterVariable-Italic.55d6a3f35e9b605ba6f4.ttf") format('truetype');
+      src: url("{{ staticCDNHost }}/static/media/InterVariable-Italic.01dcbad1bac635f9c9cd.woff2") format('woff2');
       font-weight: 300 1000;
       font-style: italic;
       font-display: swap;