中文字体优化

优化中文字体的显示

/* ==UserStyle==
@name        中文字体优化
@description 优化中文字体的显示
@author      AENERV7
@namespace   https://github.com/aenerv7/Dox
@version     4.2
@license     CC-BY-NC-ND-4.0
==/UserStyle== */

@-moz-document url-prefix()
{

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

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

@font-face {
    font-family: standard;
    src: local('Microsoft YaHei'), local('PingFang SC');
}

@font-face {
    font-family: Standard;
    src: local('Microsoft YaHei'), local('PingFang SC');
}

@font-face {
    font-family: -webkit-standard;
    src: local('Microsoft YaHei'), local('PingFang SC');
}

/* 英文 衬线 */

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

@font-face {
    font-family: Georgia;
    src: local('LXGW WenKai');
    unicode-range: U+4E00-9FA5, U+9FA6-9FEF, U+3400-4DB5, U+20000-2A6D6, U+2A700-2B734, U+2B740-2B81D, U+2B820-2CEA1, U+2CEB0-2EBE0, U+2F00-2FD5, U+2E80-2EF3, U+F900-FAD9, U+2F800-2FA1D, U+E815-E86F, U+E400-E5E8, U+E600-E6CF, U+31C0-31E3, U+2FF0-2FFB, U+3105-312F, U+31A0-31BA, U+3007;
}

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

@font-face {
    font-family: Times;
    src: local('LXGW WenKai');
    unicode-range: U+4E00-9FA5, U+9FA6-9FEF, U+3400-4DB5, U+20000-2A6D6, U+2A700-2B734, U+2B740-2B81D, U+2B820-2CEA1, U+2CEB0-2EBE0, U+2F00-2FD5, U+2E80-2EF3, U+F900-FAD9, U+2F800-2FA1D, U+E815-E86F, U+E400-E5E8, U+E600-E6CF, U+31C0-31E3, U+2FF0-2FFB, U+3105-312F, U+31A0-31BA, U+3007;
}

@font-face {
    font-family: 'Times New Roman';
    src: local('Times New Roman'), local('LXGW WenKai');
}

@font-face {
    font-family: 'Times New Roman';
    src: local('LXGW WenKai');
    unicode-range: U+4E00-9FA5, U+9FA6-9FEF, U+3400-4DB5, U+20000-2A6D6, U+2A700-2B734, U+2B740-2B81D, U+2B820-2CEA1, U+2CEB0-2EBE0, U+2F00-2FD5, U+2E80-2EF3, U+F900-FAD9, U+2F800-2FA1D, U+E815-E86F, U+E400-E5E8, U+E600-E6CF, U+31C0-31E3, U+2FF0-2FFB, U+3105-312F, U+31A0-31BA, U+3007;
}

/* 英文 无衬线 */

@font-face {
    font-family: -apple-system;
    src: local('Microsoft YaHei'), local('PingFang SC');
}

@font-face {
    font-family: -apple-system;
    src: local('Microsoft YaHei'), local('PingFang SC');
    unicode-range: U+4E00-9FA5, U+9FA6-9FEF, U+3400-4DB5, U+20000-2A6D6, U+2A700-2B734, U+2B740-2B81D, U+2B820-2CEA1, U+2CEB0-2EBE0, U+2F00-2FD5, U+2E80-2EF3, U+F900-FAD9, U+2F800-2FA1D, U+E815-E86F, U+E400-E5E8, U+E600-E6CF, U+31C0-31E3, U+2FF0-2FFB, U+3105-312F, U+31A0-31BA, U+3007;
}

@font-face {
    font-family: Helvetica;
    src: local(Helvetica), local('Microsoft YaHei'), local('PingFang SC');
}

@font-face {
    font-family: Helvetica;
    src: local('Microsoft YaHei'), local('PingFang SC');
    unicode-range: U+4E00-9FA5, U+9FA6-9FEF, U+3400-4DB5, U+20000-2A6D6, U+2A700-2B734, U+2B740-2B81D, U+2B820-2CEA1, U+2CEB0-2EBE0, U+2F00-2FD5, U+2E80-2EF3, U+F900-FAD9, U+2F800-2FA1D, U+E815-E86F, U+E400-E5E8, U+E600-E6CF, U+31C0-31E3, U+2FF0-2FFB, U+3105-312F, U+31A0-31BA, U+3007;
}

@font-face {
    font-family: 'helvetica neue';
    src: local('helvetica neue'), local('Microsoft YaHei'), local('PingFang SC');
}

@font-face {
    font-family: 'helvetica neue';
    src: local('Microsoft YaHei'), local('PingFang SC');
    unicode-range: U+4E00-9FA5, U+9FA6-9FEF, U+3400-4DB5, U+20000-2A6D6, U+2A700-2B734, U+2B740-2B81D, U+2B820-2CEA1, U+2CEB0-2EBE0, U+2F00-2FD5, U+2E80-2EF3, U+F900-FAD9, U+2F800-2FA1D, U+E815-E86F, U+E400-E5E8, U+E600-E6CF, U+31C0-31E3, U+2FF0-2FFB, U+3105-312F, U+31A0-31BA, U+3007;
}

@font-face {
    font-family: 'Helvetica Neue';
    src: local('Helvetica Neue'), local('Microsoft YaHei'), local('PingFang SC');
}

@font-face {
    font-family: 'Helvetica Neue';
    src: local('Microsoft YaHei'), local('PingFang SC');
    unicode-range: U+4E00-9FA5, U+9FA6-9FEF, U+3400-4DB5, U+20000-2A6D6, U+2A700-2B734, U+2B740-2B81D, U+2B820-2CEA1, U+2CEB0-2EBE0, U+2F00-2FD5, U+2E80-2EF3, U+F900-FAD9, U+2F800-2FA1D, U+E815-E86F, U+E400-E5E8, U+E600-E6CF, U+31C0-31E3, U+2FF0-2FFB, U+3105-312F, U+31A0-31BA, U+3007;
}

@font-face {
    font-family: 'lucida grande';
    src: local('lucida grande'), local('Microsoft YaHei'), local('PingFang SC');
}

@font-face {
    font-family: 'lucida grande';
    src: local('Microsoft YaHei'), local('PingFang SC');
    unicode-range: U+4E00-9FA5, U+9FA6-9FEF, U+3400-4DB5, U+20000-2A6D6, U+2A700-2B734, U+2B740-2B81D, U+2B820-2CEA1, U+2CEB0-2EBE0, U+2F00-2FD5, U+2E80-2EF3, U+F900-FAD9, U+2F800-2FA1D, U+E815-E86F, U+E400-E5E8, U+E600-E6CF, U+31C0-31E3, U+2FF0-2FFB, U+3105-312F, U+31A0-31BA, U+3007;
}

@font-face {
    font-family: 'Lucida Grande';
    src: local('Lucida Grande'), local('Microsoft YaHei'), local('PingFang SC');
}

@font-face {
    font-family: 'Lucida Grande';
    src: local('Microsoft YaHei'), local('PingFang SC');
    unicode-range: U+4E00-9FA5, U+9FA6-9FEF, U+3400-4DB5, U+20000-2A6D6, U+2A700-2B734, U+2B740-2B81D, U+2B820-2CEA1, U+2CEB0-2EBE0, U+2F00-2FD5, U+2E80-2EF3, U+F900-FAD9, U+2F800-2FA1D, U+E815-E86F, U+E400-E5E8, U+E600-E6CF, U+31C0-31E3, U+2FF0-2FFB, U+3105-312F, U+31A0-31BA, U+3007;
}

@font-face {
    font-family: 'Open Sans';
    src: local('Open Sans'), local('Microsoft YaHei'), local('PingFang SC');
}

@font-face {
    font-family: 'Open Sans';
    src: local('Microsoft YaHei'), local('PingFang SC');
    unicode-range: U+4E00-9FA5, U+9FA6-9FEF, U+3400-4DB5, U+20000-2A6D6, U+2A700-2B734, U+2B740-2B81D, U+2B820-2CEA1, U+2CEB0-2EBE0, U+2F00-2FD5, U+2E80-2EF3, U+F900-FAD9, U+2F800-2FA1D, U+E815-E86F, U+E400-E5E8, U+E600-E6CF, U+31C0-31E3, U+2FF0-2FFB, U+3105-312F, U+31A0-31BA, U+3007;
}

@font-face {
    font-family: 'Segoe UI';
    src: local('Segoe UI'), local('Microsoft YaHei'), local('PingFang SC');
}

@font-face {
    font-family: 'Segoe UI';
    src: local('Microsoft YaHei'), local('PingFang SC');
    unicode-range: U+4E00-9FA5, U+9FA6-9FEF, U+3400-4DB5, U+20000-2A6D6, U+2A700-2B734, U+2B740-2B81D, U+2B820-2CEA1, U+2CEB0-2EBE0, U+2F00-2FD5, U+2E80-2EF3, U+F900-FAD9, U+2F800-2FA1D, U+E815-E86F, U+E400-E5E8, U+E600-E6CF, U+31C0-31E3, U+2FF0-2FFB, U+3105-312F, U+31A0-31BA, U+3007;
}

@font-face {
    font-family: Tahoma;
    src: local(Tahoma), local('Microsoft YaHei'), local('PingFang SC');
}

@font-face {
    font-family: Tahoma;
    src: local('Microsoft YaHei'), local('PingFang SC');
    unicode-range: U+4E00-9FA5, U+9FA6-9FEF, U+3400-4DB5, U+20000-2A6D6, U+2A700-2B734, U+2B740-2B81D, U+2B820-2CEA1, U+2CEB0-2EBE0, U+2F00-2FD5, U+2E80-2EF3, U+F900-FAD9, U+2F800-2FA1D, U+E815-E86F, U+E400-E5E8, U+E600-E6CF, U+31C0-31E3, U+2FF0-2FFB, U+3105-312F, U+31A0-31BA, U+3007;
}

@font-face {
    font-family: Verdana;
    src: local(Verdana), local('Microsoft YaHei'), local('PingFang SC');
}

@font-face {
    font-family: Verdana;
    src: local('Microsoft YaHei'), local('PingFang SC');
    unicode-range: U+4E00-9FA5, U+9FA6-9FEF, U+3400-4DB5, U+20000-2A6D6, U+2A700-2B734, U+2B740-2B81D, U+2B820-2CEA1, U+2CEB0-2EBE0, U+2F00-2FD5, U+2E80-2EF3, U+F900-FAD9, U+2F800-2FA1D, U+E815-E86F, U+E400-E5E8, U+E600-E6CF, U+31C0-31E3, U+2FF0-2FFB, U+3105-312F, U+31A0-31BA, U+3007;
}

/* 简体中文 宋体(衬线) */

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

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

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

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

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

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

/* 简体中文 黑体(无衬线) */

@font-face {
    font-family: 'Heiti SC';
    src: local('Microsoft YaHei'), local('PingFang SC');
}

@font-face {
    font-family: 'Hiragino Sans GB';
    src: local('Microsoft YaHei'), local('PingFang SC');
}

@font-face {
    font-family: 'Microsoft Yahei';
    src: local('Microsoft YaHei'), local('PingFang SC');
}

@font-face {
    font-family: 'Microsoft YaHei';
    src: local('Microsoft YaHei'), local('PingFang SC');
}

@font-face {
    font-family: 'Microsoft YaHei UI';
    src: local('Microsoft YaHei'), local('PingFang SC');
}

@font-face {
    font-family: 'PingFang SC';
    src: local('Microsoft YaHei'), local('PingFang SC');
}

@font-face {
    font-family: simhei;
    src: local('Microsoft YaHei'), local('PingFang SC');
}

@font-face {
    font-family: Simhei;
    src: local('Microsoft YaHei'), local('PingFang SC');
}

@font-face {
    font-family: STHeiti;
    src: local('Microsoft YaHei'), local('PingFang SC');
}

@font-face {
    font-family: 'WenQuanYi Micro Hei';
    src: local('Microsoft YaHei'), local('PingFang SC');
}

@font-face {
    font-family: 黑体;
    src: local('Microsoft YaHei'), local('PingFang SC');
}

@font-face {
    font-family: '黑体';
    src: local('Microsoft YaHei'), local('PingFang SC');
}

@font-face {
    font-family: 华文黑体;
    src: local('Microsoft YaHei'), local('PingFang SC');
}

@font-face {
    font-family: '华文黑体';
    src: local('Microsoft YaHei'), local('PingFang SC');
}

/* 繁体中文 宋体(衬线) */

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

@font-face {
    font-family: 新细明体;
    src: local('LXGW WenKai');
}

@font-face {
    font-family: '新细明体';
    src: local('LXGW WenKai');
}

@font-face {
    font-family: 新細明體;
    src: local('LXGW WenKai');
}

@font-face {
    font-family: '新細明體';
    src: local('LXGW WenKai');
}

/* 繁体中文 黑体(无衬线) */

@font-face {
    font-family: 'Microsoft Jhenghei';
    src: local('Microsoft YaHei'), local('PingFang SC');
}

@font-face {
    font-family: 'Microsoft JhengHei';
    src: local('Microsoft YaHei'), local('PingFang SC');
}

@font-face {
    font-family: 'Microsoft JhengHei UI';
    src: local('Microsoft YaHei'), local('PingFang SC');
}

@font-face {
    font-family: 'PingFang HK';
    src: local('Microsoft YaHei'), local('PingFang SC');
}

@font-face {
    font-family: 'PingFang TC';
    src: local('Microsoft YaHei'), local('PingFang SC');
}

/* 日文 宋体(衬线) */

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

/* 日文 黑体(无衬线) */

@font-face {
    font-family: 'Hiragino Sans';
    src: local('Microsoft YaHei'), local('PingFang SC');
}

@font-face {
    font-family: Meiryo;
    src: local('Microsoft YaHei'), local('PingFang SC');
}

@font-face {
    font-family: 'Meiryo';
    src: local('Microsoft YaHei'), local('PingFang SC');
}

@font-face {
    font-family: 'Meiryo UI';
    src: local('Microsoft YaHei'), local('PingFang SC');
}

@font-face {
    font-family: 'MS PGothic';
    src: local('Microsoft YaHei'), local('PingFang SC');
}

@font-face {
    font-family: 'MS Pゴシック';
    src: local('Microsoft YaHei'), local('PingFang SC');
}

@font-face {
    font-family: 'Yu Gothic';
    src: local('Microsoft YaHei'), local('PingFang SC');
}

@font-face {
    font-family: 'Yu Gothic UI';
    src: local('Microsoft YaHei'), local('PingFang SC');
}

@font-face {
    font-family: 'ヒラギノ角ゴ Pro';
    src: local('Microsoft YaHei'), local('PingFang SC');
}

/* 等宽 */

@font-face {
    font-family: Consolas;
    src: local(Consolas), local('Maple Mono NF CN'), local('Cascadia Mono'), local('SF Mono');
}

@font-face {
    font-family: Consolas;
    src: local('Microsoft YaHei'), local('PingFang SC');
    unicode-range: U+4E00-9FA5, U+9FA6-9FEF, U+3400-4DB5, U+20000-2A6D6, U+2A700-2B734, U+2B740-2B81D, U+2B820-2CEA1, U+2CEB0-2EBE0, U+2F00-2FD5, U+2E80-2EF3, U+F900-FAD9, U+2F800-2FA1D, U+E815-E86F, U+E400-E5E8, U+E600-E6CF, U+31C0-31E3, U+2FF0-2FFB, U+3105-312F, U+31A0-31BA, U+3007;
}

@font-face {
    font-family: Courier;
    src: local(Courier), local('Maple Mono NF CN'), local('Cascadia Mono'), local('SF Mono');
}

@font-face {
    font-family: Courier;
    src: local('Microsoft YaHei'), local('PingFang SC');
    unicode-range: U+4E00-9FA5, U+9FA6-9FEF, U+3400-4DB5, U+20000-2A6D6, U+2A700-2B734, U+2B740-2B81D, U+2B820-2CEA1, U+2CEB0-2EBE0, U+2F00-2FD5, U+2E80-2EF3, U+F900-FAD9, U+2F800-2FA1D, U+E815-E86F, U+E400-E5E8, U+E600-E6CF, U+31C0-31E3, U+2FF0-2FFB, U+3105-312F, U+31A0-31BA, U+3007;
}

@font-face {
    font-family: 'Courier New';
    src: local('Courier New'), local('Maple Mono NF CN'), local('Cascadia Mono'), local('SF Mono');
}

@font-face {
    font-family: 'Courier New';
    src: local('Microsoft YaHei'), local('PingFang SC');
    unicode-range: U+4E00-9FA5, U+9FA6-9FEF, U+3400-4DB5, U+20000-2A6D6, U+2A700-2B734, U+2B740-2B81D, U+2B820-2CEA1, U+2CEB0-2EBE0, U+2F00-2FD5, U+2E80-2EF3, U+F900-FAD9, U+2F800-2FA1D, U+E815-E86F, U+E400-E5E8, U+E600-E6CF, U+31C0-31E3, U+2FF0-2FFB, U+3105-312F, U+31A0-31BA, U+3007;
}

@font-face {
    font-family: FantasqueSansMonoRegular;
    src: local(FantasqueSansMonoRegular), local('Maple Mono NF CN'), local('SF Mono');
}

@font-face {
    font-family: FantasqueSansMonoRegular;
    src: local('Microsoft YaHei'), local('PingFang SC');
    unicode-range: U+4E00-9FA5, U+9FA6-9FEF, U+3400-4DB5, U+20000-2A6D6, U+2A700-2B734, U+2B740-2B81D, U+2B820-2CEA1, U+2CEB0-2EBE0, U+2F00-2FD5, U+2E80-2EF3, U+F900-FAD9, U+2F800-2FA1D, U+E815-E86F, U+E400-E5E8, U+E600-E6CF, U+31C0-31E3, U+2FF0-2FFB, U+3105-312F, U+31A0-31BA, U+3007;
}

@font-face {
    font-family: 'lucida console';
    src: local('lucida console'), local('Maple Mono NF CN'), local('Cascadia Mono'), local('SF Mono');
}

@font-face {
    font-family: 'lucida console';
    src: local('Microsoft YaHei'), local('PingFang SC');
    unicode-range: U+4E00-9FA5, U+9FA6-9FEF, U+3400-4DB5, U+20000-2A6D6, U+2A700-2B734, U+2B740-2B81D, U+2B820-2CEA1, U+2CEB0-2EBE0, U+2F00-2FD5, U+2E80-2EF3, U+F900-FAD9, U+2F800-2FA1D, U+E815-E86F, U+E400-E5E8, U+E600-E6CF, U+31C0-31E3, U+2FF0-2FFB, U+3105-312F, U+31A0-31BA, U+3007;
}

@font-face {
    font-family: 'Lucida Console';
    src: local('Lucida Console'), local('Maple Mono NF CN'), local('Cascadia Mono'), local('SF Mono');
}

@font-face {
    font-family: 'Lucida Console';
    src: local('Microsoft YaHei'), local('PingFang SC');
    unicode-range: U+4E00-9FA5, U+9FA6-9FEF, U+3400-4DB5, U+20000-2A6D6, U+2A700-2B734, U+2B740-2B81D, U+2B820-2CEA1, U+2CEB0-2EBE0, U+2F00-2FD5, U+2E80-2EF3, U+F900-FAD9, U+2F800-2FA1D, U+E815-E86F, U+E400-E5E8, U+E600-E6CF, U+31C0-31E3, U+2FF0-2FFB, U+3105-312F, U+31A0-31BA, U+3007;
}

@font-face {
    font-family: MingLiU;
    src: local('Microsoft YaHei'), local('PingFang SC');
}

@font-face {
    font-family: MingLiU-ExtB;
    src: local('Maple Mono NF CN'), local('Cascadia Mono'), local('SF Mono');
}

@font-face {
    font-family: MingLiU_HKSCS;
    src: local('Maple Mono NF CN'), local('Cascadia Mono'), local('SF Mono');
}

@font-face {
    font-family: MingLiU_HKSCS-ExtB;
    src: local('Maple Mono NF CN'), local('Cascadia Mono'), local('SF Mono');
}

@font-face {
    font-family: nsimsun;
    src: local('Maple Mono NF CN'), local('Cascadia Mono'), local('SF Mono');
}

@font-face {
    font-family: NSimsun;
    src: local('Maple Mono NF CN'), local('Cascadia Mono'), local('SF Mono');
}

@font-face {
    font-family: 细明体;
    src: local('Maple Mono NF CN'), local('Cascadia Mono'), local('SF Mono');
}

@font-face {
    font-family: '细明体';
    src: local('Maple Mono NF CN'), local('Cascadia Mono'), local('SF Mono');
}

@font-face {
    font-family: 細明體;
    src: local('Maple Mono NF CN'), local('Cascadia Mono'), local('SF Mono');
}

@font-face {
    font-family: '細明體';
    src: local('Maple Mono NF CN'), local('Cascadia Mono'), local('SF Mono');
}

@font-face {
    font-family: 新宋体;
    src: local('Maple Mono NF CN'), local('Cascadia Mono'), local('SF Mono');
}

@font-face {
    font-family: '新宋体';
    src: local('Maple Mono NF CN'), local('Cascadia Mono'), local('SF Mono');
}

@font-face {
    font-family: 新宋體;
    src: local('Maple Mono NF CN'), local('Cascadia Mono'), local('SF Mono');
}

@font-face {
    font-family: '新宋體';
    src: local('Maple Mono NF CN'), local('Cascadia Mono'), local('SF Mono');
}

/* 特殊 */

@font-face {
    font-family: 'Comic Sans MS';
    src: local('Comic Sans MS'), local('LXGW WenKai');
}

@font-face {
    font-family: 'Comic Sans MS';
    src: local('LXGW WenKai');
    unicode-range: U+4E00-9FA5, U+9FA6-9FEF, U+3400-4DB5, U+20000-2A6D6, U+2A700-2B734, U+2B740-2B81D, U+2B820-2CEA1, U+2CEB0-2EBE0, U+2F00-2FD5, U+2E80-2EF3, U+F900-FAD9, U+2F800-2FA1D, U+E815-E86F, U+E400-E5E8, U+E600-E6CF, U+31C0-31E3, U+2FF0-2FFB, U+3105-312F, U+31A0-31BA, U+3007;
}

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

@font-face {
    font-family: Impact;
    src: local('LXGW WenKai');
    unicode-range: U+4E00-9FA5, U+9FA6-9FEF, U+3400-4DB5, U+20000-2A6D6, U+2A700-2B734, U+2B740-2B81D, U+2B820-2CEA1, U+2CEB0-2EBE0, U+2F00-2FD5, U+2E80-2EF3, U+F900-FAD9, U+2F800-2FA1D, U+E815-E86F, U+E400-E5E8, U+E600-E6CF, U+31C0-31E3, U+2FF0-2FFB, U+3105-312F, U+31A0-31BA, U+3007;
}

@font-face {
    font-family: 瀹嬩綋;
    src: local('Microsoft YaHei'), local('PingFang SC');
}

@font-face {
    font-family: '瀹嬩綋';
    src: local('Microsoft YaHei'), local('PingFang SC');
}

}