Mythologyli
V2EX  ›  Windows

Windows 11 KB5053656 似乎破坏了 FontLink,导致 Segoe UI 无法显示中文

  •  
  •   Mythologyli · Mar 19, 2025 · 4121 views
    This topic created in 593 days ago, the information mentioned may be changed or developed.

    起因是升级了 KB5053656 之后,发现 GitHub 上的中文字体变得怪怪的,仔细一看这不是 Noto Sans SC 吗?

    看了一下 font-family 是 -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",为什么 Segoe UI 没起作用?

    Segoe UI 的 FontLink 配置为:

    MSYH.TTC,Microsoft YaHei UI,128,96
    MSYH.TTC,Microsoft YaHei UI
    TAHOMA.TTF,Tahoma
    MSJH.TTC,Microsoft Jhenghei UI,128,96
    MSJH.TTC,Microsoft Jhenghei UI
    MEIRYO.TTC,Meiryo UI,128,96
    MEIRYO.TTC,Meiryo UI
    SIMSUN.TTC,SimSun
    MINGLIU.TTC,PMingLiU
    MSGOTHIC.TTC,MS UI Gothic
    MALGUN.TTF,Malgun Gothic,128,96
    MALGUN.TTF,Malgun Gothic
    GULIM.TTC,Gulim
    YUGOTHM.TTC,Yu Gothic UI,128,96
    YUGOTHM.TTC,Yu Gothic UI
    SEGUISYM.TTF,Segoe UI Symbol
    

    写了一个测试:

    <!DOCTYPE html>
    <html lang="zh">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>测试 Segoe UI 字体</title>
        <style>
            body {
                font-family: "Segoe UI";
                font-size: 24px;
                text-align: center;
                margin-top: 50px;
            }
        </style>
    </head>
    <body>
        <h1>测试字体</h1>
    </body>
    </html>
    

    发现实际渲染用的是 Noto Sans SC ,卸载更新以后就可以用微软雅黑渲染了。

    我的系统语言是英文,但感觉和这个应该关系不大。有没有安装了 KB5053656 的朋友发现字体出问题了?

    Supplement 1  ·  Mar 19, 2025
    搞明白了,chrome 不会使用 fontlink ,新的更新给系统安装了 noto sans 字体,如果 font-family 里没有能显示中文的字体 chrome 就会用 noto sans
    16 replies  •  2025-03-20 20:29:04 +08:00
    hysjw
    hysjw
    Mar 19, 2025
    1
    还是 stylus 或者 firefox 吧 稳定点 避免一些问题
    volks
    volks
    Mar 19, 2025
    2
    segoe ui 本来就不含中文啊,之前显示雅黑是因为没有 noto sans ,更新向系统添加了 noto sans ,自然优先显示
    Mythologyli
    Mythologyli
    OP
    Mar 19, 2025 via Android
    3
    @volks 可以看看什么是 font link
    Koell
    Koell
    Mar 19, 2025❤️2
    4
    https://blogs.windows.com/windows-insider/2025/03/13/releasing-windows-11-build-22631-5116-to-the-release-preview-channel/
    Windows 从这个更新开始预置 Noto Sans CJK 了,Chrome 在版本大概 128 时,如果系统内有 Noto Sans 会默认使用。
    https://groups.google.com/a/chromium.org/g/blink-dev/c/t1Mc7oJdNQY

    所以安装完 Windows 更新就会突然换字体了。
    Mythologyli
    Mythologyli
    OP
    Mar 19, 2025 via Android
    5
    @Koell 原来如此,那可能 chrome 一开始就不支持 fontlink
    vvhy
    vvhy
    Mar 19, 2025
    6
    一直在用 stylus 把-apple-system 之类的一堆东西替换成喜欢的字体,我管你这的那的🐶
    Fdyo
    Fdyo
    Mar 19, 2025
    7
    Noto 是新引入的字体,微软说是为了提高网页浏览体验。其实是在上周的预览版 Build 22631.5116 ( KB5053657 )开始推出的 https://ohh.run/fef9
    Mythologyli
    Mythologyli
    OP
    Mar 19, 2025 via Android
    8
    @Fdyo 我感觉比较奇怪的是为什么不遵守系统的 fontlink ,按理说在 segoe ui 这里就应该定向到微软雅黑了
    Fdyo
    Fdyo
    Mar 19, 2025
    9
    @Mythologyli Chrome 可能的原因:这次更新后 Windows 11 将 Noto Sans 作为 CJK 语言的默认字体,浏览器可能会优先使用它,而不是 Segoe UI 。
    zhj9709
    zhj9709
    Mar 19, 2025
    10
    我 24 英寸 1080p 的屏幕现在字体看着没以前清楚
    Mythologyli
    Mythologyli
    OP
    Mar 19, 2025
    11
    @Fdyo 搞明白了,确实是 chrome 不会使用 fontlink ,安装了 noto sans 之后 font-family 没有能显示中文的字体就用 noto sans 了
    zhj9709
    zhj9709
    Mar 19, 2025
    12
    @zhj9709 浏览器字体 标准字体和 Sans-serif 字体改回微软雅黑好多了
    Mythologyli
    Mythologyli
    OP
    Mar 19, 2025
    13
    @zhj9709 我直接把更新加的 Noto Sans 字体删了,现在正常了
    zhj9709
    zhj9709
    Mar 20, 2025
    14
    @Mythologyli #13 你是怎么删的,我的删不掉
    Mythologyli
    Mythologyli
    OP
    Mar 20, 2025 via Android
    15
    @zhj9709 可以谷歌一下如何删除系统字体,简单来说就是用第三方文件管理器删除
    zhj9709
    zhj9709
    Mar 20, 2025
    16
    @Mythologyli #15 直接用火绒粉碎了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1439 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 22:42 · PVG 06:42 · LAX 14:42 · JFK 17:42
    ♥ Do have faith in what you're doing.