中文字体英文字符间距加倍的问题
还是没有解决,:?我的local.conf文件配置如下,参考自:
http://www.linuxfans.org/nuke/modules.php?name=Forums&file=viewtopic&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>
我的local是zh_CN.GB2312,fontconfig目录下只有fonts.conf,fonsts.dtd和local.conf三个文件。
-------------------
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"
-------------------
FVWM字体如下:
SetEnv fvwm_cn_font -*-simsun-medium-r-normal-*-12-*-*-*-*-*-*-0
SetEnv fvwm_en_font -*-tahoma-medium-r-normal-*-12-*-*-*-*-*-iso8859-1
Style * Font "$,$" http://www.linuxfans.org/nuke/modules.php?name=Forums&file=viewtopic&t=24271
页:
[1]