
如图,在火狐浏览器中,对于monospace的中文,会显示得很粗。这个问题不知具体什么时候发生的,貌似是在更新了澎湃 OS2 后,反正就是最近才发现,重装浏览器也没有解决。有人遇到了同样的问题吗?

在远程元素审查中,可以发现粗体字被解析成一个叫LogoSC Unbounded Sans的字体。且当以某些特定的字开头时,第一个字被解析成Beihaibei SC。这显然是不正常的。下面两个正常的字体都是Noto Sans CJK SC。
奇怪的是,在 Android 的/etc/fonts.xml和/system/fonts中搜索,并没有搜到上述两个字体。不知哪冒出来的。然后呢,这个问题,就导致了几乎只要是代码块一类的,里面的中文全是这种很粗的粗体。放张 GitHub 代码预览的图:

(笑
1 coolfan 2024-11-25 20:34:57 +08:00 |
2 bczhc OP 更新:找到了更新的字体配置及位置。 `/product/etc/fonts_customization.xml` ```xml <family customizatiOnType="new-named-family" name="miclock-beihaibei-sc-regular"> <font weight="500" style="normal" postScriptName="BeihaibeiSC-Regular">BeihaibeiSC-Regular.ttf</font> <family customizatiOnType="new-named-family" name="miclock-beihaibei-tc-regular"> <font weight="500" style="normal" postScriptName="BeihaibeiTC-Regular">BeihaibeiTC-Regular.ttf</font> ... <font weight="400" style="normal" postScriptName="LogoSCUnboundedSans-Regular">DelaGothicOne.otf</font> ``` 文件分别是:`/product/fonts/BeihaibeiSC-Regular.ttf`和`/product/fonts/DelaGothicOne.otf`。 |
3 tyzrj766 2024-12-07 02:09:10 +08:00 |
4 bczhc OP @tyzrj766 没,哈哈。对我也不算太影响,只是好奇这玩意引起的原因,我也向 Mozilla ( bugzilla 编号 1933410 )和小米社区都反馈了。 |
5 szxzipcn 300 天前 firefox focus 没有这个问题。访问这些网站可用 firefox focus 替代。 |
6 omph 197 天前 是系统带的字体吗?还是自己安装的? |