LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
12
返回列表 发新帖
楼主: is02bing

问个有关GTK字体设置的老问题

[复制链接]
发表于 2006-1-10 18:29:28 | 显示全部楼层
我的建议是不要用gtk1的东西……
回复 支持 反对

使用道具 举报

发表于 2006-1-10 23:36:42 | 显示全部楼层
Post by Freesnake
我的建议是不要用gtk1的东西……

严重同意,要用也用命令行,如mplayer
回复 支持 反对

使用道具 举报

发表于 2006-1-12 11:11:45 | 显示全部楼层
我的也是这个问题,英文字体间距为两倍。

我的local.conf文件配置如下,参考自:
http://www.linuxfans.org/nuke/mo ... ewtopic&t=55203

<match target="font">
<test target="spacing" compare="more_eq">
<const>dual</const>
</test>
<edit name="globaladvance" mode="assign">
<bool>false</bool>
</edit>
</match>

另外,这样写也没有用:
<match target="font">
<test target="pattern" name="lang" compare="contains">
<string>zh-cn</string>
</test>
<edit name="spacing" mode="assign">
<const>proportional</const>
</edit>
<edit name="globaladvance" mode="assign">
<bool>false</bool>
</edit>
</match>
或:
参考自:http://chinese.alioth.debian.org/cgi-bin/wiki/Fontconfig
<match target="font">
<test name="family" compare="contains">
<string>SimSun</string>
</test>
<edit name="spacing" mode="assign">
<const>proportional</const>
</edit>
<edit name="globaladvance" mode="assign">
<bool>false</bool>
</edit>
</match>
-------------------
gtkrc如下:
style "default"
{
        font_name="Tahoma,Simsun 12"
}
widget_class "*" style "default"
-------------------
gtkrc.zh_CN如下:
style "gtk-default-zh-cn" {
        fontset = "-microsoft-Tahoma-medium-r-normal-*-12-*-*-*-*-*-iso8859-1,\
                -*-Simsun-medium-r-normal-*-12-*-*-*-*-*-gb2312.1980-0,\
                -*-Simsun-medium-r-normal-*-12-*-*-*-*-*-gbk-0"
}

class "GtkWidget" style "gtk-default-zh-cn"
-------------------
我的local是zh_CN.GB2312
FVWM字体如下:
SetEnv fvwm_cn_font -*-simsun-medium-r-normal-*-12-*-*-*-*-*-*-0
SetEnv fvwm_en_font -*-tahoma-medium-r-normal-*-12-*-*-*-*-*-iso8859-1
Style * Font "$[fvwm_en_font],$[fvwm_cn_font]"
回复 支持 反对

使用道具 举报

发表于 2006-1-12 15:21:00 | 显示全部楼层
我把FVWM里的字体设定去掉了,使用默认的,结果就好了,不知道怎么回事。另外默认的字体比大了一些,看样子像是simsun的。

弄不懂了!
回复 支持 反对

使用道具 举报

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

本版积分规则

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