Skip to content

替换所有字体为系统UI字体 by rygtx

Details

Authorrygtx

LicenseNo License

CategoryFont

Created

Updated

Size12 kB

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

替换所有字体为系统UI字体 不替换表情字体 不会出现方框

Notes

2023/010/5 v0.24 适配 [win-bug-omega]字体

2023/010/5 v0.24 适配 [-apple-system] [YouYuan] [STXihei]字体

2023/06/19 v0.23 适配 [HarmonyOS_Sans_SC_Medium] 字体

2023/06/19 v0.22 适配 [阿里巴巴普惠体] 字体

2023/06/19 v0.21 适配 [FZLTYH_L] [REGULAR] [FZLTYH_R] 字体

2023/05/9 v0.20 适配 [NotoSansHans Regular] [NotoSansHans Bold] [NotoSansHans Light] 字体

2023/04/25 v0.19 适配 [思源黑体] 字体

2023/02/10 v0.18 适配 [Montserrat] 字体

2023/02/10 v0.17 适配 [方正正纤黑简体] 字体

2023/02/10 v0.16 适配 [ReithSerif] [ReithSans] 字体

2023/02/7 v0.15 适配 [Klavika] 字体

2023/02/7 v0.14 适配 [rubik] 字体

2023/01/16 v0.13 适配 [NVIDIASans] 字体

2023/01/16 v0.12 适配 [微软雅黑 Regular] 字体

2022/12/22 v0.11 适配 [Merriweather Sans] [HarmonyOS Sans SC] 字体

2022/12/22 v0.10 适配 [Microsoft Yahei Light] [Microsoft Yahei UI Light] 字体

2022/12/22 v0.09 适配 [方正正纤黑简体] 字体

2022/12/17 v0.08 适配 [Lucida Sans Unicode] [Lucida Grande]字体

2022/12/7 v0.07 适配 [Merriweather]字体

2022/12/7 v0.06 适配 [SourceHanSans-CN]字体

2022/12/7 v0.05 适配 [Hiragino Sans GB] [WenQuanYi Micro Hei]字体

2022/12/4 v0.04 适配 [Noto IKEA Latin] [Noto Ikea SC] 字体

2022/12/3 v0.03 适配 [PingFangSC-Semibold] [PingFangSC-Bold] 字体

2022/12/2 v0.02 适配 [SourceHanSansCN] [SourceHanSansCN-Regular] [SourceHanSansCN-Medium]
[SourceHanSansCN-Bold] 字体

Source code

Source code has over 10K characters, so we truncated it. You can inspect the full source code on install link.
/* ==UserStyle==
@name         替换所有字体为系统UI字体
@version      v0.25
@namespace    userstyles.world/user/rygtx
@description  原理:通过欺骗浏览器使用“local”函数假装是各种字体,从而实现替换效果
具体字体跟随系统UI字体,中文系统下默认为微软雅黑
@author       rygtx
@license      No License
==/UserStyle== */

@-moz-document regexp(".*") {

    /* Your code goes here. */

}


@font-face {
    font-family: 'simsun';
    src: local('system-ui');
}

@font-face {
    font-family: '宋体';
    src: local('system-ui');
}

@font-face {
    font-family: 'Arial';
    src: local('system-ui');
}

@font-face {
    font-family: 'Microsoft YaHei';
    src: local('system-ui');
}

@font-face {
    font-family: 'Microsoft Yahei UI';
    src: local('system-ui');
}

@font-face {
    font-family: '-apple-system-font';
    src: local('system-ui');
}

@font-face {
    font-family: 'verdana';
    src: local('system-ui');
}

@font-face {
    font-family: 'PingFang SC';
    src: local('system-ui');
}

@font-face {
    font-family: '方正兰亭黑';
    src: local('system-ui');
}

@font-face {
    font-family: '微软雅黑';
    src: local('system-ui');
}

@font-face {
    font-family: '微软雅黑 Regular';
    src: local('system-ui');
}

@font-face {
    font-family: 'Helvetica';
    src: local('system-ui');
}

@font-face {
    font-family: 'Helvetica Neue';
    src: local('system-ui');
}

@font-face {
    font-family: 'Tahoma';
    src: local('system-ui');
}

@font-face {
    font-family: '黑体';
    src: local('system-ui');
}

@font-face {
    font-family: '新宋体';
    src: local('system-ui');
}

@font-face {
    font-family: 'calibri';
    src: local('system-ui');
}

@font-face {
    font-family: '仿宋_gb2312';
    src: local('system-ui');
}

@font-face {
    font-family: '仿宋';
    src: local('system-ui');
}

@font-face {
    font-family: '楷体';
    src: local('system-ui');
}

@font-face {
    font-family: '楷体_GB2312';
    src: local('system-ui');
}

@font-face {
    font-family: 'Times New Roman';
    src: local('system-ui');
}

@font-face {
    font-family: 'Fira Code';
    src: local('system-ui');
}

@font-face {
    font-family: 'Trebuchet MS';
    src: local('system-ui');
}

@font-face {
    font-family: 'PingFangSC-Light';
    src: local('system-ui');
}

@font-face {
    font-family: 'PingFangSC-Regular';
    src: local('system-ui');
}

@font-face {
    font-family: 'PingFangSC-Semibold';
    src: local('system-ui');
}

@font-face {
    font-family: 'PingFangSC-Medium';
    src: local('system-ui');
}

@font-face {
    font-family: 'PingFangSC-Bold';
    src: local('system-ui');
}

@font-face {
    font-family: 'Open Sans';
    src: local('system-ui');
}

@font-face {
    font-family: 'Menlo';
    src: local('system-ui');
}

@font-face {
    font-family: 'Monaco';
    src: local('system-ui');
}

@font-face {
    font-family: 'Consolas';
    src: local('system-ui');
}

@font-face {
    font-family: 'Courier New';
    src: local('system-ui');
}

@font-face {
    font-family: 'Roboto';
    src: local('system-ui');
}

@font-face {
    font-family: 'Segoe UI';
    src: local('system-ui');
}

@font-face {
    font-family: 'SegoeUI';
    src: local('system-ui');
}

@font-face {
    font-family: 'Segoe UI Light';
    src: local('system-ui');
}

@font-face {
    font-family: 'Segoe UI Variable Text';
    src: local('system-ui');
}

@font-face {
    font-family: 'Segoe WP Light';
    src: local('system-ui');
}

@font-face {
    font-family: 'Segoe';
    src: local('system-ui');
}

@font-face {
    font-family: 'SimHei';
    src: local('system-ui');
}

@font-face {
    font-family: 'Microsoft jheangHei';
    src: local('system-ui');
}

@font-face {
    font-family: '微软正黑';
    src: local('system-ui');
}

@font-face {
    font-family: 'poppins';
    src: local('system-ui');
}

@font-face {
    font-family: 'Source Sans Pro';
    src: local('system-ui');
}

@font-face {
    font-family: 'Georgia';
    src: local('system-ui');
}

@font-face {
    font-family: 'q_serif';
    src: local('system-ui');
}

@font-face {
    font-family: 'Times';
    src: local('system-ui');
}

@font-face {
    font-family: 'Hiragino Kaku Gothic Pro';
    src: local('system-ui');
}

@font-face {
    font-family: 'Meiryo';
    src: local('system-ui');
}

@font-face {
    font-family: 'Open Sans Regular';
    src: local('system-ui');
}

@font-face {
    font-family: 'Noto Sans TC';
    src: local('system-ui');
}

@font-face {
    font-family: 'Apple LiGothic';
    src: local('system-ui');
}

@font-face {
    font-family: '微軟正黑體';
    src: local('system-ui');
}

@font-face {
    font-family: '蘋果儷中黑';
    src: local('system-ui');
}

@font-face {
    font-family: 'Microsoft JhengHei';
    src: local('system-ui');
}

@font-face {
    font-family: 'Noto Sans SC';
    src: local('system-ui');
}

@font-face {
    font-family: 'Noto Serif SC';
    src: local('system-ui');
}

@font-face {
    font-family: 'Noto Serif TC';
    src: local('system-ui');
}

@font-face {
    font-family: 'Yu Gothic';
    src: local('system-ui');
}

@font-face {
    font-family: 'Lucida Console';
    src: local('system-ui');
}

@font-face {
    font-family: 'MiSans';
    src: local('system-ui');
}

@font-face {
    font-family: 'NVIDIA-APAC';
    src: local('system-ui');
}

@font-face {
    font-family: 'Nunito Sans';
    src: local('system-ui');
}

@font-face {
    font-family: 'songjianti';
    src: local('system-ui');
}

@font-face {
    font-family: 'HarmonyOS';
    src: local('system-ui');
}

@font-face {
    font-family: 'Ubuntu';
    src: local('system-ui');
}

@font-face {
    font-family: '等线';
    src: local('system-ui');
}

@font-face {
    font-family: 'Lato';
    src: local('system-ui');
}

@font-face {
    font-family: 'IBMPlexSans';
    src: local('system-ui');
}

@font-face {
    font-family: 'Noto Sans';
    src: local('system-ui');
}

@font-face {
    font-family: 'NVIDIA-NALA';
    src: local('system-ui');
}

@font-face {
    font-family: 'SF Pro SC';
    src: local('system-ui');
}

@font-face {
    font-family: 'HanHei SC';
    src: local('system-ui');
}

@font-face {
    font-family: 'SF Pro Text';
    src: local('system-ui');
}

@font-face {
    font-family: 'Yu Gothic UI';
    src: local('system-ui');
}

@font-face {
    font-family: 'tomorrow';
    src: local('system-ui');
}

@font-face {
    font-family: 'FangSong';
    src: local('system-ui');
}

@font-face {
    font-family: 'Exo 2';
    src: local('system-ui');
}

@font-face {
    font-family: 'fzltzhjw';
    src: local('system-ui');
}

@font-face {
    font-family: 'Atkinson Hyperlegible';
    src: local('system-ui');
}

@font-face {
    font-family: 'Galano Grotesque Alt';
    src: local('system-ui');
}

@font-face {
    font-family: 'LXGW WenKai';
    src: local('system-ui');
}

@font-face {
    font-family: 'Motiva Sans';
    src: local('system-ui');
}

@font-face {
    font-family: 'sans-serif';
    src: local('system-ui');
}

@font-face {
    font-family: 'Droid Arabic Naskh';
    src: local('system-ui');
}

@font-face {
    font-family: 'BlinkMacSystemFont';
    src: local('system-ui');
}

@font-face {
    font-family: 'Microsoft SegoeUI';
    src: local('system-ui');
}

@font-face {
    font-family: 'knowledge-medium';
    src: local('system-ui');
}

@font-face {
    font-family: 'knowledge-regular';
    src: local('system-ui');
}

@font-face {
    font-family: 'TPU-Body';
    src: local('system-ui');
}

@font-face {
    font-family: 'TPU-Title';
    src: local('system-ui');
}

@font-face {
    font-family: 'sans-hans';
    src: local('system-ui');
}

@font-face {
    font-family: 'Saira';
    src: local('system-ui');
}

@font-face {
    font-family: 'Source Han Sans SC';
    src: local('system-ui');
}

@font-face {
    font-family: 'Source Han Sans';
    src: local('system-ui');
}

@font-face {
    font-family: 'Roboto Slab';
    src: local('system-ui');
}

@font-face {
    font-family: 'Raleway';
    src: local('system-ui');
}

@font-face {
    font-family: 'Inter';
    src: local('system-ui');
}

@font-face {
    font-family: 'SourceHanSansCN';
    src: local('system-ui');
}

@font-face {
    font-family: 'SourceHanSansCN-Regular';
    src: local('system-ui');
}

@font-face {
    font-family: 'SourceHanSansCN-Bold';
    src: local('system-ui');
}

@font-face {
    font-family: 'SourceHanSansCN-Medium';
    src: local('system-ui');
}

@font-face {
    font-family: 'Noto IKEA Latin';
    src: local('system-ui');
}

@font-face {
    font-family: 'Noto IKEA Latin';
    src: local('system-ui');
}

@font-face {
    font-family: 'Hiragino Sans GB';
    src: local('system-ui');
}

@font-face {
    font-family: 'WenQuanYi Micro Hei';
    src: local('system-ui');
}

@font-face {
    font-family: 'SourceHanSans-CN';
    src: local('system-ui');
}

@font-face {
    font-family: 'Merriweather';
    src: local('system-ui');
}

@font-face {
    font-family: 'Lucida Grande';
    src: local('system-ui');
}

@font-face {
    font-family: 'Lucida Sans Unicode';
    src: local('system-ui');
}

@font-face {
    font-family: 'ProximaNova-Regular';
    src: local('system-ui');
}

@font-face {
    font-family: 'Microsoft Yahei UI Light';
    src: local('system-ui');
}

@font-face {
    font-family: 'Microsoft Yahei Light';
    src: local('system-ui');
}

@font-face {
    font-family: 'HarmonyOS Sans SC';
    src: local('system-ui');
}

@font-face {
    font-family: 'Merriweather Sans';
    src: local('system-ui');
}

@font-face {
   ...

Reviews

No reviews yet.