Re: 怎样能使ttf-arphic-uming字体关掉AA
简单点,你可以用这个 ~/.fonts.conf
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!-- 关于 Gtk2.8 粗体 --> <match target="font" >
<!-- check to see if the pattern requested --> <test compare="more"
target="pattern" name="weight" >
<const>medium</const>
</test>
<!-- pretend the font is bold now --> <edit mode="assign" name="embolden" >
<bool>true</bool>
</edit>
</match>
<!-- Disable antialias feature of AR PL ShanHeiSun Uni when pixelsize
less than 17 --> <match target="font" >
<test name="family" >
<string>AR PL ShanHeiSun Uni</string>
</test>
<edit name="antialias" >
<bool>false</bool>
</edit>
<edit name="hinting" >
<bool>true</bool>
</edit>
<edit name="autohint" >
<bool>false</bool>
</edit>
</match>
<match target="font" >
<test name="family" >
<string>AR PL ShanHeiSun Uni</string>
</test>
<test compare="more_eq" name="pixelsize" >
<int>17</int>
</test>
<edit mode="assign" name="antialias" >
<bool>true</bool>
</edit>
<edit mode="assign" name="hinting" >
<bool>true</bool>
</edit>
</match>
<!--
重排Serif字体显示顺序
--> <alias>
<family>serif</family>
<prefer>
<family>DejaVu Serif</family>
<family>Bitstream Vera Serif</family>
<family>Times New Roman</family>
<family>Times</family>
<family>AR PL ShanHeiSun Uni</family>
<family>AR PL New Sung</family>
<family>SimSun</family>
<family>Luxi Serif</family>
<family>AR PL SungtiL GB</family>
<family>AR PL Mingti2L Big5</family>
<family>Ming(ISO10646)</family>
<family>Kochi Mincho</family>
<family>Baekmuk Batung</family>
</prefer>
</alias>
<!--
重排sans-serif字体显示顺序
--> <alias>
<family>sans-serif</family>
<prefer>
<family>DejaVu Serif</family>
<family>Bitstream Vera Sans</family>
<family>Arial</family>
<family>Verdana</family>
<family>Helvetica</family>
<family>AR PL ShanHeiSun Uni</family>
<family>AR PL New Sung</family>
<family>SimSun</family>
<family>Luxi Serif</family>
<family>Ming(ISO10646)</family>
<family>AR PL kaitiM GB</family>
<family>AR PL kaitiM Big5</family>
<family>Kochi Gothic</family>
<family>Baekmuk Dotum</family>
</prefer>
</alias>
<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>
</fontconfig>
Reply to: