Skip to content

Commit d120beb

Browse files
committed
fix(webui): add Noto Sans font support for Cyrillic text
The WebUI only loaded Noto Sans SC (Simplified Chinese), which lacks Cyrillic glyphs. Russian text fell back to system sans-serif, causing poor rendering depending on the OS. Changes: - Load Noto Sans (regular) from Google Fonts alongside Noto Sans SC - Add 'Noto Sans' at the END of $cjk-sans-fallback (after CJK fonts) so Chinese text still renders with system CJK fonts first, while Cyrillic text falls through to Noto Sans. This ensures both Chinese and Cyrillic text render correctly.
1 parent 0830f48 commit d120beb

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

dashboard/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<meta name="robots" content="noindex, nofollow" />
1010
<link
1111
rel="stylesheet"
12-
href="https://fonts.googleapis.com/css2?family=Outfit&family=Noto+Sans+SC:wght@100..900&display=swap"
12+
href="https://fonts.googleapis.com/css2?family=Outfit&family=Noto+Sans:wght@100..900&family=Noto+Sans+SC:wght@100..900&display=swap"
1313
/>
1414
<!-- VAD (Voice Activity Detection) Libraries -->
1515
<script src="https://cdn.jsdelivr.net/npm/onnxruntime-web@1.22.0/dist/ort.wasm.min.js"></script>

dashboard/src/scss/_variables.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ $color-pack: false;
99
// Global font size and border radius
1010
$font-size-root: 1rem;
1111
$border-radius-root: 8px;
12-
$cjk-sans-fallback: 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans CJK SC', 'Microsoft YaHei' !default;
12+
$cjk-sans-fallback: 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans CJK SC', 'Microsoft YaHei', 'Noto Sans' !default;
1313
$cjk-mono-fallback: 'PingFang SC', 'PingFang TC', 'Hiragino Sans GB', 'Noto Sans CJK SC', 'Microsoft YaHei' !default;
1414
$code-text-color: #111827 !default;
1515

0 commit comments

Comments
 (0)