vuejs / vitepress

Vite & Vue powered static site generator.
https://vitepress.dev
MIT License
13.22k stars 2.13k forks source link

fix(theme): remove some explicit fonts #4286

Closed Jungzl closed 1 month ago

Jungzl commented 1 month ago

Description

These fonts before sans-serif have poor rendering on Windows, remove them so that users who don't have PingFang SC & Noto Sans SC' installed can still set their preferred fonts. image

[!TIP] The author of this PR can publish a preview release by commenting /publish below.

Jungzl commented 1 month ago

/publish

pkg-pr-new[bot] commented 1 month ago
pnpm add https://pkg.pr.new/vitepress@4286

commit: 5cc5ead

brc-dd commented 1 month ago

Need someone to confirm this on Chrome on Windows 10 or 11 (who hasn't customized fonts in Chrome/Win settings) - what does this show:

  1. Open https://vitepress.dev/zh/
  2. Open devtools
  3. Select <body>
  4. Uncheck "font-family" in "Styles" tab: image
  5. Select any Chinese text
  6. Go to "Computed" tab in devtools
  7. Scroll down to "Rendered Fonts": image
Jungzl commented 1 month ago

online version: image

local version: image