diff --git a/plugins/plugin-fonts/src/client/styles/fonts.css b/plugins/plugin-fonts/src/client/styles/fonts.css index a2ea3387..a9afb535 100644 --- a/plugins/plugin-fonts/src/client/styles/fonts.css +++ b/plugins/plugin-fonts/src/client/styles/fonts.css @@ -238,13 +238,86 @@ U+FFFD; } -/* Chinese quotes rendering fix. 中英文弯引号共享 Unicode 码位,确保引号使用中文字体渲染 */ @font-face { - font-family: "Chinese Quotes"; + font-family: "Punctuation SC"; + font-weight: 400; src: local("PingFang SC Regular"), - local("PingFang SC"), - local("SimHei"), - local("Source Han Sans SC"); - unicode-range: U+2018, U+2019, U+201C, U+201D; /* 分别是 ‘’“” */ + local("Noto Sans CJK SC"), + local("Microsoft YaHei"); + unicode-range: + U+201C, + U+201D, + U+2018, + U+2019, + U+2E3A, + U+2014, + U+2013, + U+2026, + U+00B7, + U+007E, + U+002F; +} + +@font-face { + font-family: "Punctuation SC"; + font-weight: 500; + src: + local("PingFang SC Medium"), + local("Noto Sans CJK SC"), + local("Microsoft YaHei"); + unicode-range: + U+201C, + U+201D, + U+2018, + U+2019, + U+2E3A, + U+2014, + U+2013, + U+2026, + U+00B7, + U+007E, + U+002F; +} + +@font-face { + font-family: "Punctuation SC"; + font-weight: 600; + src: + local("PingFang SC Semibold"), + local("Noto Sans CJK SC Bold"), + local("Microsoft YaHei Bold"); + unicode-range: + U+201C, + U+201D, + U+2018, + U+2019, + U+2E3A, + U+2014, + U+2013, + U+2026, + U+00B7, + U+007E, + U+002F; +} + +@font-face { + font-family: "Punctuation SC"; + font-weight: 700; + src: + local("PingFang SC Semibold"), + local("Noto Sans CJK SC Bold"), + local("Microsoft YaHei Bold"); + unicode-range: + U+201C, + U+201D, + U+2018, + U+2019, + U+2E3A, + U+2014, + U+2013, + U+2026, + U+00B7, + U+007E, + U+002F; } diff --git a/theme/src/client/styles/vars.css b/theme/src/client/styles/vars.css index 0526237e..808b4c67 100644 --- a/theme/src/client/styles/vars.css +++ b/theme/src/client/styles/vars.css @@ -260,25 +260,19 @@ * -------------------------------------------------------------------------- */ :root { --vp-font-family-base: - "Chinese Quotes", - inter, + "Inter", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", - "Noto Color Emoji", - "Apple Color Emoji", - "Segoe UI Emoji", - "Segoe UI Symbol", "Noto Color Emoji"; --vp-font-family-mono: ui-monospace, - sfmono-regular, - menlo, - monaco, - consolas, + "Menlo", + "Monaco", + "Consolas", "Liberation Mono", "Courier New", monospace; @@ -293,12 +287,6 @@ "Inter", ui-sans-serif, system-ui, - "PingFang SC", - "Noto Sans CJK SC", - "Noto Sans SC", - "Heiti SC", - "Microsoft YaHei", - "DengXian", sans-serif, "Apple Color Emoji", "Segoe UI Emoji",