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
953 stars 46 forks source link

在Safari上显示错误(如图所示) #11

Closed easonnnone closed 3 years ago

easonnnone commented 3 years ago

在Safari上使用该功能后,很多网站显示出了问题(如下图所示) Snipaste_2021-07-14_08-57-40 Snipaste_2021-07-14_08-57-59

F9y4ng commented 3 years ago

那是因为你更换的新字体的字符宽度比网站本身定义的字体字符宽度大,且该网站网页样式又对容器宽度做了限制,所以才会出现文字换行,重叠的情况。这种情况你只能选择使用其他适当的字体,或者把该网站加入排除列表,不进行字体渲染。同样,使用描边、阴影也会增加字符宽度,有几率出现你遇到的问题。