about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2024-10-01 15:57:49 -0500
committerGitHub <noreply@github.com>2024-10-01 15:57:49 -0500
commit5a98ea684d90526e80b8b3ef7554452c4f8db53b (patch)
tree89a41490bc8f291dc35717535bd75b8bcfe74d26 /src
parente33b2b1beec5c3bfd4ab7b78e7d0a0de4493b0ae (diff)
downloadvoidsky-5a98ea684d90526e80b8b3ef7554452c4f8db53b.tar.zst
Include ghost hook to statically export fonts (#5553)
Diffstat (limited to 'src')
-rw-r--r--src/alf/fonts.ts14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/alf/fonts.ts b/src/alf/fonts.ts
index ae2aaa97a..54fe7a34e 100644
--- a/src/alf/fonts.ts
+++ b/src/alf/fonts.ts
@@ -1,3 +1,5 @@
+import {useFonts} from 'expo-font'
+
 import {isWeb} from '#/platform/detection'
 import {Device, device} from '#/storage'
 
@@ -63,3 +65,15 @@ export function applyFonts(
    */
   style.fontVariant = ['no-contextual']
 }
+
+/*
+ * IMPORTANT: This is unused. Expo statically extracts these fonts.
+ *
+ * All used fonts MUST be configured here. Unused fonts can be commented out.
+ */
+export function DO_NOT_USE() {
+  return useFonts({
+    InterVariable: require('../../assets/fonts/inter/InterVariable.ttf'),
+    'InterVariable-Italic': require('../../assets/fonts/inter/InterVariable-Italic.ttf'),
+  })
+}