![]() |
1
leiakun OP 看到网上有同样的问题,说了要修改字体的顺序,但是没说在哪个地方修改字体的顺序。
https://www.wikimoe.com/post/m0vn9cj9 |
![]() |
2
teloti 123 天前
试试看在 about:config 里把 gfx.font_rendering.fontconfig.max_generic_substitutions 改成 127 ?
https://wiki.archlinux.org/title/Firefox#Font_troubleshooting |
![]() |
4
Les1ie 123 天前
我也偶尔遇到这问题,Arch+i3wm, firefox 打开某些网页的时候特定字体无法渲染,解决方案:懒得解决 :)
|
5
billlee 123 天前 ![]() 因为这个网页的 CSS 就是这么写的:
font-family: -apple-system, BlinkMacSystemFont, Apple Color Emoji, SF Pro, PingFang SC, SF Pro Icons, Helvetica Neue, Helvetica, Arial, sans-serif apple-system, BlinkMacSystemFont 都没有匹配,就优先使用 Apple Color Emoji. 所以要么卸载这个字体,要么就参考 /etc/fonts/conf.d/30-win32-aliases.conf, 自己把 BlinkMacSystemFont 也 alias 一下 |
![]() |
6
tedding 119 天前 ![]() 你可以参考一下我的 fontconf 设置(部分) ,指定一下 BlinkMacSystemFont 就可以了
<!-- Default system-ui fonts --> <match target="pattern"> <test name="family"> <string>system-ui</string> </test> <edit name="family" mode="prepend" binding="strong"> <string>sans-serif</string> </edit> </match> <match target="pattern"> <test name="family"> <string>BlinkMacSystemFont</string> </test> <edit name="family" mode="prepend" binding="strong"> <string>sans-serif</string> </edit> </match> <!-- Default sans-serif fonts--> <match target="pattern"> <test name="family"> <string>sans-serif</string> </test> <edit name="family" mode="prepend" binding="strong"> <string>PingFang SC</string> <string>Heiti SC</string> <string>Apple Color Emoji</string> </edit> </match> <!-- Default serif fonts--> <match target="pattern"> <test name="family"> <string>serif</string> </test> <edit name="family" mode="prepend" binding="strong"> <string>PingFang SC</string> <string>Heiti SC</string> <string>Apple Color Emoji</string> </edit> </match> |