From d0dcd655fd8c68bba491b8bf2c2c8e7b1941b1b4 Mon Sep 17 00:00:00 2001 From: bdim404 Date: Fri, 6 Feb 2026 14:14:18 +0800 Subject: [PATCH] feat: Update font file references to use noto-serif-latin-regular.woff2 --- ...regular.woff2 => noto-serif-latin-regular.woff2} | Bin qwen3-tts-frontend/src/lib/fontManager.ts | 12 ++++++------ 2 files changed, 6 insertions(+), 6 deletions(-) rename qwen3-tts-frontend/fonts/{noto-serif-regular.woff2 => noto-serif-latin-regular.woff2} (100%) 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', }