Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

知乎部分文字的字重被改变了 #20

Closed
nothingshiru opened this issue Jun 13, 2023 · 2 comments
Closed

知乎部分文字的字重被改变了 #20

nothingshiru opened this issue Jun 13, 2023 · 2 comments

Comments

@nothingshiru
Copy link

nothingshiru commented Jun 13, 2023

问题标题、答主名称、回答里的加粗文字被变成跟普通文字一样的字重,讨论区里粗体的用户名称则是正确显示

关闭扩展(上) vs 开启扩展(下)
ss

@BlackGlory
Copy link
Owner

具体来看, 原因在于两处粗体使用的字重值不同, 所以一些渲染成粗体, 一些没有渲染成粗体.
这其实是不正常的, 因为即使在字体具有多种字重的情况下, Chromium也没有正确渲染字重, 这是造成启用和不启用扩展程序时字体渲染差异的根本原因.
问题很可能出在Chromium对font-face字体的支持上, 我认为在扩展程序层面解决问题是不可能的.

如果有人想到什么解决方案, 欢迎留言或提交PR.

@nothingshiru
Copy link
Author

再次使用这个扩展,发现可以正确显示了
屏幕截图 2024-04-28 194649

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants