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
919 stars 45 forks source link

[发现错误] 在使用kibana页面的开发工具中输入框出现光标定位偏移问题 #303

Closed fu7100 closed 7 months ago

fu7100 commented 7 months ago

问题现象如下,当我使用安装了字体渲染油猴插件的firefox浏览器访问kibana并使用开发工具调试的时候输入的代码定位偏移,如下图光标的位置实际是在字母s的后面中间并没有空格

图片

当我关闭字体渲染后光标定位恢复。

F9y4ng commented 7 months ago

如果你没有开启字体缩放功能的话,那必定是字体的字宽问题造成的。

由于更换过网页默认字体,会造成字体宽度与程序默认宽度不一致从而使得编辑工具的样式发生错误。

解决办法

  1. 尝试开启自定义等宽字体功能,具体如何开启、如何设置请在Discussions中搜索。
  2. 如果以上方法无效,请关闭字体重写功能,以停止对网页默认字体的替换;或排除渲染该站点。
fu7100 commented 7 months ago

非常感谢! 关闭字体重写功能后正常了。

F9y4ng @.***> 于2024年1月5日周五 12:54写道:

Closed #303 https://github.com/F9y4ng/GreasyFork-Scripts/issues/303 as completed.

— Reply to this email directly, view it on GitHub https://github.com/F9y4ng/GreasyFork-Scripts/issues/303#event-11397568040, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOEZP3IA37Z67PAKARQ4GVDYM6BQRAVCNFSM6AAAAABBN2D2SCVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJRGM4TONJWHAYDIMA . You are receiving this because you authored the thread.Message ID: @.***>