+ -
当前位置:首页 → 问答吧 → 字体间距怎么这么大?

字体间距怎么这么大?

时间:2005-04-13

来源:互联网

我在fonts.conf里加上
<dir>/usr/X11R6/lib/X11/fonts/truetype/sim</dir>
后间距就着么大了,去掉后就好了。
这个目录是我的simsun字体的目录。
上传的图像
zhuatu.jpg (12.2 KB, 34 次查看)

作者: xueyan   发布时间: 2005-04-13

after searching,i know how to resolve it.
sorry!

作者: xueyan   发布时间: 2005-04-13

将你的 .fonts.conf 改一下我没有用sumsin可能也有效。

#vi /home/****/.fonts.conf

<?xml version="1.0"?>
<match target="font" >
<test compare="contains" target="pattern" name="lang" >
<string>zh-tw</string>
<string>zh-cn</string>
<string>ja</string>
<string>ko</string>
</test>
<edit name="spacing" >
<const>proportional</const>
</edit>
<edit name="globaladvance" >
<bool>false</bool>
</edit>
<match target="font" >
<edit mode="assign" name="hinting" >
<bool>true</bool>
</edit>
</match>
<match target="font" >
<edit mode="assign" name="hintstyle" >
<const>hintmedium</const>
</edit>
</match>
<dir>~/.fonts</dir>
</match>

作者: gan007   发布时间: 2005-04-13

好像光这一个选项就行了:

<?xml version="1.0"?>
<match target="font" >
<test compare="contains" target="pattern" name="lang" >
<string>zh-tw</string>
<string>zh-cn</string>
<string>ja</string>
<string>ko</string>
</test>
<edit name="spacing" >
<const>proportional</const>
</edit>
<edit name="globaladvance" >
<bool>false</bool>
</edit>
不知道下边这个match是干吗的?

作者: xueyan   发布时间: 2005-04-13

没研究过。 抄别人的。

作者: gan007   发布时间: 2005-04-13

开hingting,hingting的程度为中

作者: troll   发布时间: 2005-04-13

</match>是和<match target="font">
对应的。
是这样:
代码:
<match target="font"> 
 <test target="pattern" name="lang" compare="contains"> 
 <string>zh-tw</string> 
 <string>zh-cn</string> 
 <string>ja</string> 
 <string>ko</string> 
 </test> 
 <edit name="spacing"> 
 <const>proportional</const> 
 </edit> 
 <edit name="globaladvance"> 
 <bool>false</bool> 
 </edit> 
 </match>

作者: zerolin   发布时间: 2005-04-14