您的位置:首页 > 运维架构 > Linux

一段使linux中中文字体美化的有用代码

2008-04-14 16:36 316 查看
把下面的代码添加到/etc/fonts/fonts.conf中相应的地方。即可实现对slackware的中文字体Vera Sans YuanTi字体的美化,使其显示细腻圆滑的中文字体

        <match target="font">

                <test name="family"><string>Vera Sans YuanTi</string></test>

                <edit name="globaladvance"><bool>false</bool></edit>

        </match>

        <match target="font">

                <test name="family"><string>Vera Sans YuanTi Mono</string></test>

                <edit name="globaladvance"><bool>false</bool></edit>

        </match>

        <match target="font">

                <edit name="antialias"><bool>true</bool></edit>

                <edit name="hinting"><bool>false</bool></edit>

                <edit name="autohint"><bool>false</bool></edit>

        </match>

        <match target="font">

                <test name="pixelsize" compare="more_eq"><double>12</double></test>

                <test name="pixelsize" compare="less_eq"><double>16</double></test>

                <edit name="antialias"><bool>false</bool></edit>

                <edit name="hinting"><bool>true</bool></edit>

                <edit name="autohint"><bool>false</bool></edit>

        </match> 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  linux less