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

font-family里system-ui一项导致自定义字体不生效 #23

Closed
nothingshiru opened this issue May 30, 2024 · 2 comments
Closed

font-family里system-ui一项导致自定义字体不生效 #23

nothingshiru opened this issue May 30, 2024 · 2 comments

Comments

@nothingshiru
Copy link

已经在该扩展里设置自定义字体,但有些网页还是显示为微软雅黑 Microsoft YaHei UI。在尝试手动修改网页font-family,发现是因为网页指定了system-ui这一项导致自定义字体不生效。即使我把自定义字体写在system-ui前面,我的字体也不生效。现在我使用脚本把system-ui从font-family中去掉。

钦定字体能解决这个问题吗?

@BlackGlory
Copy link
Owner

BlackGlory commented May 30, 2024

据我所知解决不了.
主动设置页面的font-family对于该扩展来说也不是一个可接受的解决方案(曾经采用过, 在Google的很多产品上有性能问题).
你目前采用的方法可能是最好的解决方案了.

可能相关的链接:

@nothingshiru
Copy link
Author

我现在用 noMeiryoUI 把系统字体也换掉了

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

No branches or pull requests

2 participants