我的字体设置~/.fonts.conf[备忘]

现在用的是微软雅黑字体,效果还算可以,所以就记下来,以备后用。

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
        <!-- Load local system customization file -->
        <!--字体替换,把Simsun等中文字体的英文部分,用Tahoma等替换-->
        <match target="pattern">
                <test name="family">
                        <string>Microsoft YaHei</string>
                        <string>SimSun</string>
                        <string>AR PL ShanHeiSun Uni</string>
                        <string>AR PL New Sung</string>
                        <string>MingLiU</string>
                        <string>PMingLiU</string>
                </test>
                <edit binding="strong" mode="prepend" name="family">
                        <string>Lucida Grande</string>
                        <string>Tahoma</string>
                        <string>Arial</string>
                        <string>Verdana</string>
                        <string>Arial</string>
                        <string>Verdana</string>
                        <string>DejaVu Sans</string>
                        <string>Bitstream Vera Sans</string>
                </edit>
        </match>
        <!--reset font rendering order-->
        <alias>
                <family>serif</family>
                <prefer>
                        <family>Lucida Grande</family>
                        <family>Times New Roman</family>
                        <family>Bitstream Vera Serif</family>
                        <family>Microsoft YaHei</family>
                        <family>SimSun</family>
                        <family>Nimbus Roman No9 L</family>
                        <family>Luxi Serif</family>
                        <family>Times</family>
                        <family>WenQuanYi Bitmap Song</family>
                        <family>Times</family>
                        <family>WenQuanYi Bitmap Song</family>
                        <family>AR PL ShanHeiSun Uni</family>
                        <family>AR PL New Sung</family>
                        <family>AR PL ZenKai Uni</family>
                        <family>Ming(ISO10646)</family>
                        <family>Kochi Mincho</family>
                        <family>Baekmuk Batung</family>
                        <family>FangSong_GB2312</family>
                </prefer>
        </alias>
        <alias>
                <family>sans-serif</family>
                <prefer>
                        <family>Lucida Grande</family>
                        <family>Tahoma</family>
                        <family>Bitstream Vera Sans</family>
                        <family>Verdana</family>
                        <family>Arial</family>
                        <family>Verdana</family>
                        <family>Arial</family>
                        <family>Microsoft YaHei</family>
                        <family>SimSun</family>
                        <family>WenQuanYi Bitmap Song</family>
                        <family>AR PL ShanHeiSun Uni</family>
                        <family>AR PL New Sung</family>
                        <family>AR PL ZenKai Uni</family>
                        <family>Helvetica</family>
                        <family>Ming(ISO10646)</family>
                        <family>Kochi Gothic</family>
                        <family>Baekmuk Dotum</family>
                        <family>FangSong_GB2312</family>
                </prefer>
        </alias>
        <alias>
                <family>monospace</family>
                <prefer>
                        <family>Courier New</family>
                        <family>Bitstream Vera Sans Mono</family>
                        <family>Courier</family>
                        <family>Microsoft YaHei</family>
                        <family>SimSun</family>
                        <family>Andale Mono</family>
                        <family>Luxi Mono</family>
                        <family>Nimbus Mono L</family>
                        <family>WenQuanYi Bitmap Song</family>
                        <family>AR PL ShanHeiSun Uni</family>
                        <family>AR PL New Sung</family>
                        <family>AR PL ZenKai Uni</family>
                        <family>Ming(ISO10646)</family>
                        <family>Kochi Mincho</family>
                        <family>Baekmuk Batung</family>
                        <family>FangSong_GB2312</family>
                </prefer>
        </alias>

<!--开启AA和Hinting,关闭autohint-->
        <match target="font">
                <edit name="autohint">
                        <bool>false</bool>
                </edit>
                <edit name="hinting">
                        <bool>true</bool>
                </edit>
                <edit name="hintstyle">
                        <const>hintfull</const>
                </edit>
                <edit name="antialias">
                        <bool>true</bool>
                </edit>
        </match>
        </match>

</fontconfig>

你可能感兴趣的:(xml,Microsoft)