您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
1) Use real bold to replace synthetic SimSun bold; 2) Regular SimSun/中易宋体 can also be substituted; 3) Reassign font fallback list (Latin AND CJK). Browser serif/sans settings are overridden; 4) Use Latin fonts for Latin part in Latin/CJK mixed texts; 5) Fix conflicting CJK punctuations. (Currently “”‘’ are fixed).
当前为
Fix CJK fonts and punctuations for Chrome and Firefox
This was orignally developed to workaround a chromium bug. However now one can use this userscript to fix and change CJK fonts as well as Latin fonts. This is especially usefull for Linux users where the system font fallback list might be very confusing (Sometime you just can NOT predict what is the actual font for Sans or Serif in Chrome/Chromium/Firfox if you are not an expert on Fontconfig!) and common web fonts assigned in the CSS list are often missing. Windows users can also use this script to change/substitue webpage fonts (especially the dated SimSun bitmap font) on-the-fly.
Another goal of this script is to fix the CJK punctuations. Unicode assigns the same code for some CJK and Latin punctuations while they have different glyphs in CJK than in Latin. I call them "conflicting punctuations", and double and single curved quotation marks are among the most notable examples. Therefore simply using a single Latin/CJK font fallback list set in CSS cannot give the desired results. Currently, the font for CJK quotation marks as well as other full-width CJK punctuation marks are defined in CJKPunct
. The letter-space is adjusted for consecutive marks containing CJK quotation marks. More letter-space adjustment might be added in the future.
Currently, just change variable definitions from CJKdefault
to FixPunct
.
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址