LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 686|回复: 3

Problem about Font

[复制链接]
发表于 2004-11-29 21:38:41 | 显示全部楼层 |阅读模式
I've copied simsun.ttc and simhei.ttf to /usr/share/fonts/TTF. Because gtk cannot display SimSun as bold, I want to replace it with SimHei when chinese font is displayed as bold. That is my local.conf
[PHP]<match>
        <test name="family"><string>SimSun</string></test>
        <test name="weight" compare="eq"><const>bold</const></test>
        <edit name="family" mode="assign_replace"><string>SimHei</string></edit>
</match>[/PHP]
But it doesn't work as I expect, the chinese font on title of window is still not bold. How can I change it?
 楼主| 发表于 2004-11-30 22:50:17 | 显示全部楼层
is there anything wrong in my local.conf?
发表于 2004-11-30 23:42:54 | 显示全部楼层
是否应该将simsun.ttc改名为simsun.ttf呢?
 楼主| 发表于 2004-12-1 07:40:58 | 显示全部楼层
但是SimSun已经被识别了啊。
我现在就是希望在显示中文粗体的时候用黑体显示,其他时候用宋体显示,应该怎样写才行?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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