Fcitx 候选字都是方块, 求教啊!!
Ubuntu6.10中文版, 按照dalaka的字体美化方案美化http://forum.ubuntu.org.cn/about19325.html
Firefox2.0中的英文粗字体十分模糊,挤到了一起, 根本看不清楚,其他程序没问题。于是按照坛子中的方法在language-selector.conf 中添加如下代码:
<match target="pattern" >
<test name="family" >
<string>SimSun</string>
</test>
<edit name="family" mode="prepend" binding="strong" >
<string>DejaVu Sans</string>
</edit>
</match>
<match target="pattern" >
<test name="family" >
<string>NSimSun</string>
</test>
<edit name="family" mode="prepend" binding="strong" >
<string>DejaVu Sans Mono</string>
</edit>
</match>
Firefox的问题解决了, 但是Fcitx又出问题了, 所有候选字都变成方块了.. :cry:
执行 sudo gedit ~/.fcitx/config
修改 "显示字体(中)=simsun" 或者"显示字体(中)=Nsimsun"都不能解决问题
完整的language-selector.conf 代码如下:
<fontconfig>
<alias>
<family>serif</family>
<prefer>
<family>Bitstream Vera Serif</family>
<family>SimSun</family>
<family>DejaVu Serif</family>
<family>AR PL ShanHeiSun Uni</family>
<family>AR PL ZenKai Uni</family>
</prefer>
</alias>
<alias>
<family>sans-serif</family>
<prefer>
<family>Bitstream Vera Sans</family>
<family>Simsun</family>
<family>DejaVu Sans</family>
<family>AR PL ShanHeiSun Uni</family>
<family>AR PL ZenKai Uni</family>
</prefer>
</alias>
<alias>
<family>monospace</family>
<prefer>
<family>Bitstream Vera Sans Mono</family>
<family>Simsun</family>
<family>DejaVu Sans Mono</family>
<family>AR PL ShanHeiSun Uni</family>
<family>AR PL ZenKai Uni</family>
</prefer>
</alias>
<match target="font" >
<test name="family" compare="contains" >
<string>SimSun</string>
<string>Song</string>
<string>Sun</string>
<string>Kai</string>
<string>Ming</string>
</test>
<test name="weight" compare="less_eq">
<int>100</int>
</test>
<test compare="more_eq" target="pattern" name="weight" >
<int>180</int>
</test>
<edit mode="assign" name="embolden" >
<bool>true</bool>
</edit>
</match>
<match target="font" >
<test name="family" compare="contains" >
<string>SimSun</string>
<string>宋体</string>
<string>宋体-18030</string>
<string>Song</string>
<string>Sun</string>
<string>Kai</string>
<string>Ming</string>
<string>黑体</string>
<string>新宋体</string>
<string>新宋体-18030</string>
<string>楷体_GB2312</string>
<string>仿宋_GB2312</string>
<string>隶体</string>
<string>SimSun-18030</string>
<string>SimHei</string>
<string>NSimSun</string>
<string>NSimSun-18030</string>
<string>KaiTi_GB2312</string>
<string>FangSong_GB2312</string>
<string>LiSu</string>
</test>
<edit name="globaladvance">
<bool>false</bool>
</edit>
<edit name="spacing">
<int>0</int>
</edit>
<edit name="hinting">
<bool>true</bool>
</edit>
<edit name="autohint">
<bool>false</bool>
</edit>
<edit name="antialias" mode="assign">
<bool>true</bool>
</edit>
<test name="pixelsize" compare="more_eq">
<int>12</int>
</test>
<test name="pixelsize" compare="less_eq">
<int>24</int>
</test>
<edit name="antialias" mode="assign" >
<bool>false</bool>
</edit>
</match>
<match target="pattern" >
<test name="family" >
<string>SimSun</string>
</test>
<edit name="family" mode="prepend" binding="strong" >
<string>DejaVu Sans</string>
</edit>
</match>
<match target="pattern" >
<test name="family" >
<string>NSimSun</string>
</test>
<edit name="family" mode="prepend" binding="strong" >
<string>DejaVu Sans Mono</string>
</edit>
</match>
</fontconfig>
请教该如何解决FCITX的字体乱码问题啊 ? 谢谢先 修改.fcitx/conf文件
具體情況一看即知 执行 sudo gedit ~/.fcitx/config
修改 "显示字体(中)=simsun" 或者"显示字体(中)=Nsimsun"都不能解决问题 显示字体(中)=AR PL ShanHeiSun Uni 搞定了! 多谢版主
页:
[1]