diff --git a/qwen3-tts-frontend/fonts/noto-serif-regular.woff2 b/qwen3-tts-frontend/fonts/noto-serif-latin-regular.woff2 similarity index 100% rename from qwen3-tts-frontend/fonts/noto-serif-regular.woff2 rename to qwen3-tts-frontend/fonts/noto-serif-latin-regular.woff2 diff --git a/qwen3-tts-frontend/src/lib/fontManager.ts b/qwen3-tts-frontend/src/lib/fontManager.ts index ae5f64a..91eb11b 100644 --- a/qwen3-tts-frontend/src/lib/fontManager.ts +++ b/qwen3-tts-frontend/src/lib/fontManager.ts @@ -15,7 +15,7 @@ const fontConfigs: Record = { }, { name: 'Noto Serif', - file: '/fonts/noto-serif-regular.woff2', + file: '/fonts/noto-serif-latin-regular.woff2', unicodeRange: 'U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD', }, ], @@ -32,14 +32,14 @@ const fontConfigs: Record = { }, { name: 'Noto Serif', - file: '/fonts/noto-serif-regular.woff2', + file: '/fonts/noto-serif-latin-regular.woff2', unicodeRange: 'U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD', }, ], 'en-US': [ { name: 'Noto Serif', - file: '/fonts/noto-serif-regular.woff2', + file: '/fonts/noto-serif-latin-regular.woff2', unicodeRange: 'U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD', }, ], @@ -51,7 +51,7 @@ const fontConfigs: Record = { }, { name: 'Noto Serif', - file: '/fonts/noto-serif-regular.woff2', + file: '/fonts/noto-serif-latin-regular.woff2', unicodeRange: 'U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD', }, ], @@ -63,7 +63,7 @@ const fontConfigs: Record = { }, { name: 'Noto Serif', - file: '/fonts/noto-serif-regular.woff2', + file: '/fonts/noto-serif-latin-regular.woff2', unicodeRange: 'U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD', }, ], @@ -131,7 +131,7 @@ export function detectBrowserLanguage(): Language { export function preloadBaseFont(): void { const baseConfig: FontConfig = { name: 'Noto Serif', - file: '/fonts/noto-serif-regular.woff2', + file: '/fonts/noto-serif-latin-regular.woff2', unicodeRange: 'U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD', }