This is an automated email from the ASF dual-hosted git repository.

morningman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris-website.git


The following commit(s) were added to refs/heads/master by this push:
     new 98526b9c162 [fix](website) Use system fonts for Simplified Chinese 
text (#4733)
98526b9c162 is described below

commit 98526b9c162657995f33b0493a341a412b389c87
Author: xxiao2018 <[email protected]>
AuthorDate: Mon Nov 30 17:32:55 2026 +0800

    [fix](website) Use system fonts for Simplified Chinese text (#4733)
    
    ## Summary
    
    - Use Inter for Latin text and installed fonts such as PingFang SC or
    Microsoft YaHei for Simplified Chinese text.
    - Eliminate the 17.8 MB Noto Sans SC TTF request from page rendering by
    removing its web-font registration.
    
    ## Validation
    
    - Ran the Simplified Chinese Docusaurus dev server and checked the
    homepage and the 4.x overview at desktop and mobile widths in Chromium
    on macOS.
    - Confirmed that Chinese glyphs render with the system PingFang SC font
    and recorded zero requests for the full Noto Sans SC font on the checked
    pages.
    - Passed `git diff --check`.
---
 src/scss/custom.scss | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/src/scss/custom.scss b/src/scss/custom.scss
index c4996156343..75bb7cb3b07 100644
--- a/src/scss/custom.scss
+++ b/src/scss/custom.scss
@@ -27,13 +27,6 @@
     font-display: swap;
 }
 
-@font-face {
-    font-family: 'Noto Sans SC';
-    src: url('/fonts/NotoSansSC-VariableFont_wght.ttf') 
format('truetype-variations');
-    font-weight: 100 900;
-    font-display: swap;
-}
-
 @font-face {
     font-family: 'JetBrains Mono';
     src: url('/fonts/JetBrainsMono-VariableFont_wght.ttf') 
format('truetype-variations');
@@ -43,7 +36,7 @@
 
 :root {
     --font-sans-en: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 
'Helvetica Neue', Arial, sans-serif;
-    --font-sans-zh: 'Noto Sans SC', 'Inter', -apple-system, 
BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
+    --font-sans-zh: 'Inter', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK 
SC', system-ui, sans-serif;
     --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, 
Consolas, monospace;
     --font-family-base: var(--font-sans-en);
     --ifm-font-family-base: var(--font-sans-en);


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to