diff --git a/packages/frontend/src/boot/common.ts b/packages/frontend/src/boot/common.ts index 94040c6413..8f0d77c67e 100755 --- a/packages/frontend/src/boot/common.ts +++ b/packages/frontend/src/boot/common.ts @@ -23,6 +23,7 @@ import { deckStore } from '@/ui/deck/deck-store.js'; import { miLocalStorage } from '@/local-storage.js'; import { fetchCustomEmojis } from '@/custom-emojis.js'; import { setupRouter } from '@/router/definition.js'; +import { applyFont } from '@/scripts/font'; export async function common(createVue: () => App) { console.info(`Sharkey v${version}`); @@ -165,6 +166,15 @@ export async function common(createVue: () => App) { } }); + //# Custom font + if (defaultStore.state.customFont) { + applyFont(defaultStore.state.customFont); + } + + watch(defaultStore.reactiveState.customFont, (font) => { + applyFont(font); + }); + //#region Sync dark mode if (ColdDeviceStorage.get('syncDeviceDarkMode')) { defaultStore.set('darkMode', isDeviceDarkmode());