中文字体优化

优化中文字体的显示

当前为 2022-08-03 提交的版本,查看 最新版本

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

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

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

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

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

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

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

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

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

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

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

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

@-moz-document url-prefix()
{

/* 标准字体 */

@font-face
{
  font-family: serif; 
  src: local('Source Han Serif SC');
}

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

@font-face
{
  font-family: sans-serif;
  src: local('Source Han Sans SC'), local('PingFang SC');
}

@font-face
{
  font-family: Sans-Serif; 
  src: local('Source Han Sans SC'), local('PingFang SC');
}

@font-face
{
  font-family: monospace; 
  src: local('Sarasa Term SC');
}

@font-face
{
  font-family: Monospace; 
  src: local('Sarasa Term SC');
}

@font-face
{
  font-family: standard; 
  src: local('Source Han Sans SC'), local('PingFang SC');
}

@font-face
{
  font-family: Standard; 
  src: local('Source Han Sans SC'), local('PingFang SC');
}

@font-face
{
  font-family: -webkit-standard; 
  src: local('Source Han Sans SC'), local('PingFang SC');
}

/* 英文 衬线 */

@font-face
{
  font-family: 'Source Serif 4'; 
  src: local('Source Serif 4');
}

@font-face
{
  font-family: 'Source Serif 4'; 
  src: local('Source Han Serif 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: Times; 
  src: local(Times), local('Source Serif 4');
}

@font-face
{
  font-family: Times; 
  src: local('Source Han Serif 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: 'Times New Roman'; 
  src: local('Times New Roman'), local('Source Serif 4');
}

@font-face
{
  font-family: 'Times New Roman'; 
  src: local('Source Han Serif 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: -apple-system; 
  src: local('Source Sans 3');
}

@font-face
{
  font-family: -apple-system; 
  src: local('Source Han Sans SC'), 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: 'Source Sans 3'; 
  src: local('Source Han Sans SC'), 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('Source Sans 3');
}

@font-face
{
  font-family: Helvetica; 
  src: local('Source Han Sans SC'), 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('Source Sans 3');
}

@font-face
{
  font-family: 'helvetica neue'; 
  src: local('Source Han Sans SC'), 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('Source Sans 3');
}

@font-face
{
  font-family: 'Helvetica Neue'; 
  src: local('Source Han Sans SC'), 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('Source Sans 3');
}

@font-face
{
  font-family: 'lucida grande'; 
  src: local('Source Han Sans SC'), 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('Source Sans 3');
}

@font-face
{
  font-family: 'Lucida Grande'; 
  src: local('Source Han Sans SC'), 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('Source Sans 3');
}

@font-face
{
  font-family: 'Open Sans'; 
  src: local('Source Han Sans SC'), 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('Source Sans 3');
}

@font-face
{
  font-family: 'Segoe UI'; 
  src: local('Source Han Sans SC'), 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: 'Source Sans 3'; 
  src: local('Source Han Sans SC'), 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('Source Sans 3');
}

@font-face
{
  font-family: Tahoma; 
  src: local('Source Han Sans SC'), 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('Source Sans 3');
}

@font-face
{
  font-family: Verdana; 
  src: local('Source Han Sans SC'), 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('Source Han Serif SC');
}

@font-face
{
  font-family: Simsun; 
  src: local('Source Han Serif SC');
}

@font-face
{
  font-family: 宋体; 
  src: local('Source Han Serif SC');
}

@font-face
{
  font-family: '宋体'; 
  src: local('Source Han Serif SC');
}

@font-face
{
  font-family: 宋體; 
  src: local('Source Han Serif SC');
}

@font-face
{
  font-family: '宋體'; 
  src: local('Source Han Serif SC');
}

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

@font-face
{
  font-family: 'Heiti SC'; 
  src: local('Source Han Sans SC'), local('PingFang SC');
}

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

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

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

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

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

@font-face
{
  font-family: simhei; 
  src: local('Source Han Sans SC'), local('PingFang SC');
}

@font-face
{
  font-family: Simhei; 
  src: local('Source Han Sans SC'), local('PingFang SC');
}

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

@font-face
{
  font-family: STHeiti; 
  src: local('Source Han Sans SC'), local('PingFang SC');
}

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

@font-face
{
  font-family: 黑体; 
  src: local('Source Han Sans SC'), local('PingFang SC');
}

@font-face
{
  font-family: '黑体'; 
  src: local('Source Han Sans SC'), local('PingFang SC');
}

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

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

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

@font-face
{
  font-family: PMingLiU; 
  src: local('Source Han Serif TW');
}

@font-face
{
  font-family: 新细明体; 
  src: local('Source Han Serif TW');
}

@font-face
{
  font-family: '新细明体'; 
  src: local('Source Han Serif TW');
}

@font-face
{
  font-family: 新細明體; 
  src: local('Source Han Serif TW');
}

@font-face
{
  font-family: '新細明體'; 
  src: local('Source Han Serif TW');
}

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

@font-face
{
  font-family: 'Microsoft Jhenghei'; 
  src: local('Source Han Sans TW'), local('PingFang TC');
}

@font-face
{
  font-family: 'Microsoft JhengHei'; 
  src: local('Source Han Sans TW'), local('PingFang TC');
}

@font-face
{
  font-family: 'Microsoft JhengHei UI'; 
  src: local('Source Han Sans TW'), local('PingFang TC');
}

@font-face
{
  font-family: 'PingFang HK'; 
  src: local('PingFang HK'), local('Source Han Sans HK');
}

@font-face
{
  font-family: 'PingFang TC'; 
  src: local('PingFang TC'), local('Source Han Sans TW');
}

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

@font-face
{
  font-family: 'Yu Mincho'; 
  src: local('Source Han Serif JP');
}

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

@font-face
{
  font-family: 'Hiragino Sans'; 
  src: local('Yu Gothic'), local('Source Han Sans JP');
}

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

@font-face
{
  font-family: 'Meiryo UI'; 
  src: local('Source Han Sans JP');
}

@font-face
{
  font-family: 'MS PGothic';
  src: local('Source Han Sans JP');
}

@font-face
{
  font-family: 'MS Pゴシック';
  src: local('Source Han Sans JP');
}

@font-face
{
  font-family: 'Yu Gothic'; 
  src: local('Source Han Sans JP');
}

@font-face
{
  font-family: 'Yu Gothic UI'; 
  src: local('Source Han Sans JP');
}

@font-face
{
  font-family: 'ヒラギノ角ゴ Pro W3';
  src: local('Source Han Sans JP');
}

/* 等宽 */

@font-face
{
  font-family: Consolas; 
  src: local(Consolas), local('Sarasa Term SC');
}

@font-face
{
  font-family: Consolas; 
  src: local('Source Han Sans SC'), 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('Sarasa Term SC');
}

@font-face
{
  font-family: Courier; 
  src: local('Source Han Sans SC'), 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('Sarasa Term SC');
}

@font-face
{
  font-family: 'Courier New'; 
  src: local('Source Han Sans SC'), 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('Sarasa Term SC');
}

@font-face
{
  font-family: FantasqueSansMonoRegular; 
  src: local('Source Han Sans SC'), 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('Sarasa Term SC');
}

@font-face
{
  font-family: 'lucida console'; 
  src: local('Source Han Sans SC'), 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('Sarasa Term SC');
}

@font-face
{
  font-family: 'Lucida Console'; 
  src: local('Source Han Sans SC'), 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('Sarasa Term TC');
}

@font-face
{
  font-family: MingLiU-ExtB; 
  src: local('Sarasa Term TC');
}

@font-face
{
  font-family: MingLiU_HKSCS; 
  src: local('Sarasa Term TC');
}

@font-face
{
  font-family: MingLiU_HKSCS-ExtB; 
  src: local('Sarasa Term TC');
}

@font-face
{
  font-family: nsimsun; 
  src: local('Sarasa Term SC');
}

@font-face
{
  font-family: NSimsun; 
  src: local('Sarasa Term SC');
}

@font-face
{
  font-family: 细明体; 
  src: local('Sarasa Term SC');
}

@font-face
{
  font-family: '细明体'; 
  src: local('Sarasa Term SC');
}

@font-face
{
  font-family: 細明體; 
  src: local('Sarasa Term TC');
}

@font-face
{
  font-family: '細明體'; 
  src: local('Sarasa Term TC');
}

@font-face
{
  font-family: 新宋体; 
  src: local('Sarasa Term SC');
}

@font-face
{
  font-family: '新宋体'; 
  src: local('Sarasa Term SC');
}

@font-face
{
  font-family: 新宋體; 
  src: local('Sarasa Term TC');
}

@font-face
{
  font-family: '新宋體'; 
  src: local('Sarasa Term TC');
}

/* 特殊 */

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

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

}