QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 3104|回复: 4

Fcitx 候选字都是方块, 求教啊!!

[复制链接]
发表于 2006-12-4 11:34:53 | 显示全部楼层 |阅读模式
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又出问题了, 所有候选字都变成方块了..   
执行 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的字体乱码问题啊 ? 谢谢先
发表于 2006-12-4 13:40:09 | 显示全部楼层
修改.fcitx/conf文件
具體情況一看即知
回复

使用道具 举报

 楼主| 发表于 2006-12-4 14:04:57 | 显示全部楼层
执行 sudo gedit ~/.fcitx/config
修改 "显示字体(中)=simsun" 或者"显示字体(中)=Nsimsun"都不能解决问题
回复

使用道具 举报

发表于 2006-12-4 18:59:23 | 显示全部楼层
显示字体(中)=AR PL ShanHeiSun Uni
回复

使用道具 举报

 楼主| 发表于 2006-12-4 19:42:07 | 显示全部楼层
搞定了! 多谢版主
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-22 17:04 , Processed in 0.079089 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表