|
我的fontconfig中有
<match target="pattern">
<test name="family">
<string>SimSun</string>
</test>
<edit binding="strong" mode="prepend" name="family">
<string>arial</string>
</edit>
</match>
运行fcitx,就显示框框, 而不是汉字。用
显示的match字体是arial. 当然arial的lang列表里没有zh-cn支持,所以
就只能是框框。
试遍所由的fontconfig选项,好像只有foundry='unknown',可以让fc-match
返回simsun.
fc-match simsun:foundry='unknown'
也就是说在fcitx的ui.c:CreateFont中,在XftOpenFont的pattern中加上一个
foundry='unknown'的选项就可以让fcitx重新显示汉字。这个选项可能只对
从windows下搞来的字体有效。对于正版的字体如果有英文替换的现象,还需
写更多的代码解决。 |
|