|

楼主 |
发表于 2004-6-1 18:17:32
|
显示全部楼层
说明:在slackware-current(20040527), xorg-x11(dropline gnome 提供)编译的。使用了firefly的补丁,mingliu的模拟粗体字不会破碎。AA字体(arphic系列,zysong18030,STXihei,STheiti系列)显示清晰。
我的local.conf
[PHP]
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- /etc/fonts/local.conf file for local customizations -->
<fontconfig>
<!--
Enable sub-pixel rendering
Property Type Description
rgba Int unknown, rgb, bgr, vrgb, vbgr,(none - subpixel geometry)
<match target="font">
<edit name="rgba" mode="assign"><const>rgb</const></edit>
</match>
-->
<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>
<!--
Add by firefly@firefly.idv.tw
Artificial bold for fonts without a bold version.
-->
<match target="font">
<!-- check to see if the pattern requested > "medium" -->
<test target="pattern" name="weight" compare="more">
<const>medium</const>
</test>
<!-- pretend the font is bold now -->
<edit name="weight" mode="assign">
<const>bold</const>
</edit>
</match>
<!--
Add by firefly@firefly.idv.tw
-->
<match target="font">
<test name="lang" compare="contains">
<string>zh</string>
<string>ja</string>
<string>ko</string>
</test>
<edit name="autohint" mode="assign">
<bool>true</bool>
</edit>
<edit name="hintstyle" mode="assign">
<const>hintslight</const>
</edit>
<edit name="usegamma" mode="assign">
<if>
<less>
<name>pixelsize</name>
<double>20</double>
</less>
</if>
<bool>true</bool>
<bool>false</bool>
</edit>
</match>
<!--
Enable "hinting & autohint" for all fonts.
-->
<match target="font">
<edit name="hinting" mode="assign">
<bool>false</bool>
</edit>
<edit name="autohint" mode="assign">
<bool>false</bool>
</edit>
</match>
<match target="font">
<test name="family">
<string>SimSun</string>
<string>NSimSun</string>
<string>MingLiU</string>
<string> MingLiU</string>
<string>UniSun</string>
<string>Tahoma</string>
</test>
<test name="pixelsize" compare="less">
<double>22</double>
</test>
<edit name="antialias" mode="assign">
<bool>f</bool>
</edit>
<edit name="autohint">
<bool>false</bool>
</edit>
<edit name="hinting">
<bool>true</bool>
</edit>
</match>
<match target="font">
<test name="family">
<string>Lucida Grande</string>
<string>Bitstream Vera Sans</string>
<string>Arial</string>
<string>Luxi Sans</string>
<string>STHeiti</string>
</test>
<edit name="antialias" mode="assign">
<bool>t</bool>
</edit>
<edit name="autohint">
<bool>false</bool>
</edit>
<edit name="hinting">
<bool>false</bool>
</edit>
<edit name="usegamma" mode="assign">
<bool>false</bool>
</edit>
</match>
</fontconfig>
[/PHP] |
|