F9y4ng / GreasyFork-Scripts

The open source code of this project is used for userscripts (油猴脚本) for desktop browsers, including Font Rendering (Customized) (字体渲染(自用脚本)- Font Rendering.user.js), and Search Engine Assistant (优雅的搜索引擎助手 - Google & Baidu Switcher.user.js), etc.
https://f9y4ng.github.io/GreasyFork-Scripts/
GNU General Public License v3.0
951 stars 46 forks source link

[发现错误] Courier New is applied when '字體重寫' is not enabled #106

Closed ICHx closed 2 years ago

ICHx commented 2 years ago

描述错误信息 (清楚而简洁地描述了错误是什么) Courier New is applied to the style-less webpage when '字體重寫' is not enabled.

In the browser, Consolas is used by default. When the script is enabled while '字體重寫' is disabled, the very thin font 'Courier New' is used instead. This hurt readability a lot.

错误再现 (重现行为的步骤)

  1. 去XX网址 ..." https://esbenp.gallerycdn.vsassets.io/extensions/esbenp/prettier-vscode/9.5.0/1648513363698/Microsoft.VisualStudio.Services.Content.License

预期结果 (清晰明了地描述你所期待想要什么样的结果) image

屏幕截图 (如果适用,请添加屏幕截图以帮助解释您的问题) image

客户端信息: (请填写以下信息)

请预先排除与你本地其他扩展或脚本的冲突,尽量在仅运行本脚本的情况下测试

uBlock Origin

nope

附加信息 (在此处添加有关此问题的任何附加信息)

F9y4ng commented 2 years ago

控制英文等宽字体的设置不在“字体重写”开关(脚本中字体重写是针对中文字体或非等宽英文字体设定的),需要排除对英文等宽字体的设定,要在排除渲染的HTML标签中,查到并删除,pre,pre *,code,code *,或者根据你自己的需要设置自定义等宽字体(功能帮助)。