2.11.1 时的效果:
2.11.94 及以后的效果:
前后的 fontconfig 完全是一样的(包括软件包本身安装的)。
看起来其他字体倒是没啥问题,只有微软的字体坏掉了。
不知道有没有人注意到这个问题。什么原因导致的呢?
Site: CVHC.CC Twitter: @cuihaoleo Org: LUG@USTC
AD: ~欢迎参与志愿计算~
离线
ps: 图中网页的字体是微软雅黑
Site: CVHC.CC Twitter: @cuihaoleo Org: LUG@USTC
AD: ~欢迎参与志愿计算~
离线
好吧,这件事有点绕。
Star Brilliant 一眼看出来这是开了 hinting 的问题。但问题是我之前特地给微软字体关了 hinting(其他CJK字体开hinting):
<match target="font">
<test qual="any" name="foundry" compare="contains">
<string>microsoft</string>
</test>
<edit name="hinting" mode="assign">
<bool>false</bool>
</edit>
<edit name="hintstyle" mode="assign">
<const>hintnone</const>
</edit>
<edit name="autohint" mode="assign">
<bool>true</bool>
</edit>
</match>
到 2.11.94 如果说 hinting 突然开了,那就说明这条match挂了。
事实上确实是这样。2.11.1 下微软字体的 foundry 属性是这样的:
$ FC_DEBUG=1 fc-match "Segoe UI" 2>&1 | grep foundry
foundry: "microsoft"(w)
$ FC_DEBUG=1 fc-match "Verdana" 2>&1 | grep foundry
foundry: "microsoft"(w)
$ FC_DEBUG=1 fc-match "微软雅黑" 2>&1 | grep foundry
foundry: "microsoft"(w)
而 2.11.94 里变成了这样:
$ FC_DEBUG=1 fc-match "Segoe UI" 2>&1 | grep foundry
foundry: "MS "(w)
$ FC_DEBUG=1 fc-match "Verdana" 2>&1 | grep foundry
foundry: "MS "(w)
$ FC_DEBUG=1 fc-match "微软雅黑" 2>&1 | grep foundry
foundry: "MS "(w)
嗯……
Site: CVHC.CC Twitter: @cuihaoleo Org: LUG@USTC
AD: ~欢迎参与志愿计算~
离线
原来微软雅黑关 hinting 就不会那么难看啊……
离线