星期二, 七月 12, 2005

Debian字体配置文件($HOME/.fonts.conf)的修正

<?xml version= "1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="font">
<test name="family" >
<string>AR PL ShanHeiSun Uni </string>
<string>AR PL ShanHeiSun Uni MBE</string>
</test>
<edit name="globaladvance"><bool>false </bool></edit>
<edit name= "spacing"><int>0</int></edit>
</match>

<!--Start:关闭中文字体抗锯齿,可以使中文字显示清晰-->
<match target="font" >
<test name="lang" compare="contains" qual ="any">
<string> zh-cn</string>
<string>zh-tw </string>
<string>zh-hk</string>
</test>
<test compare ="less_eq" name="pixelsize" >
<double>20</double>
</test>
<edit mode= "assign" name="antialias" >
<bool>false</bool>
</edit>
</match>
<!--End:中文抗锯齿

Start: 开启所有字体的渲染自动微调
关闭后英文显示要柔和些,不那么伤眼睛
-->
<! --match target="font">
<edit name="hinting" mode="assign">
<bool>true</bool>
</edit>
<edit name="autohint" mode="assign">
<bool>true</bool>
</edit>
</match-->
<! --End: 字体渲染

Start: 英文字体优先采用Bitstream Vera
-->
<match target="pattern">
<test qual="any" name="family">
< string>serif</string>
</test>
<edit name="family" mode="append" binding="strong" >
<string>Bitstream Vera Serif </string>
</edit>
</match>
< match target="pattern">
<test qual="any" name="family">
<string >sans-serif</string>
</test>
< edit name="family" mode="append" binding="strong" >
<string>Bitstream Vera Sans</string>
</edit>
</match>
<match target="pattern">
< test qual="any" name ="family">
<string> monospace</string>
</test>
<edit name="family" mode= "append" binding="strong">
<string>Bitstream Vera Sans Mono</string>
</edit>
</match>
<!--End: 英文字体优先

Start: 指定中文字体用AR PL ShanHeiSun Uni
-->
< alias>
<family>sans-serif </family>
<prefer>
< family>Bitstream Vera Sans</family>
<family >AR PL ShanHeiSun Uni</family>
<family >AR PL ShanHeiSun Uni MBE</family>
</prefer>
</alias>
<alias>
<family >serif</family>
<prefer>
<family>Bitstream Vera Serif</family>
<family>AR PL ShanHeiSun Uni</family>
< family>AR PL ShanHeiSun Uni MBE</family>
</prefer>
</alias>
<alias>
< family>monospace</family>
< prefer>
<family>Bitstream Vera Sans Mono </family>
<family>AR PL ShanHeiSun Uni </family>
<family>AR PL ShanHeiSun Uni MBE</family>
</prefer>
</alias>
<!--End: 指定中文-- >
</fontconfig>

0 Comments:

发表评论

<< Home