Windows Fonts

用 Windows 自己的字體

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

/* ==UserStyle==
@name     Windows Fonts
@description  用 Windows 自己的字體
@namespace  https://github.com/abc0922001
@author       abc0922001
@version      0.0.1
@license MIT 
==/UserStyle== */
/* 根據語系切換 Sans 主字體 */
[lang="zh-CN" i],
[lang="zh" i],
[lang="zh-hans" i] {
    --noto-sans: "Microsoft YaHei";
}

[lang="ko" i] {
    --noto-sans: "Malgun Gothic";
}

[lang="ja" i],
[lang="jp" i] {
    --noto-sans: "Yu Gothic";
}

[lang="zh-HK" i] {
    --noto-sans: "微軟正黑體";
}

[lang="zh-TW" i],
[lang="zh-hant" i] {
    --noto-sans: "微軟正黑體";
}

/* 預設語言:繁體中文 */
html {
    --noto-sans: "微軟正黑體";
    --noto-mono: "Courier New";
}

/* 一般文字,支援字重變化 */
:not([class*="icon"]):not(i):not(.devsite-nav-toggle) {
    font-family: var(--noto-sans), "微軟正黑體", "Microsoft YaHei", sans-serif !important;
    font-variant: no-common-ligatures proportional-nums;
    font-optical-sizing: none;
    font-kerning: none;
    -webkit-font-smoothing: antialiased !important;
    text-rendering: optimizeSpeed !important;
}

/* 程式碼區塊使用等寬字體 */
pre,
code {
    font-family: var(--noto-mono), Consolas, monospace !important;
}