• 软件测试技术
  • 软件测试博客
  • 软件测试视频
  • 开源软件测试技术
  • 软件测试论坛
  • 软件测试沙龙
  • 软件测试资料下载
  • 软件测试杂志
  • 软件测试人才招聘
    暂时没有公告

字号: | 推荐给好友 上一篇 | 下一篇

解决英文字体间距变宽的local.conf

发布: 2007-7-04 12:06 | 作者: admin | 来源:  网友评论 | 查看: 15次 | 进入软件测试论坛讨论

领测软件测试网         <match target="font" >
                <test compare="more_eq" name="spacing" >
                        <const>dual</const>
                </test>
                <!--edit mode="assign" name="globaladvance" -->
                        <!--bool>false</bool-->
                <!--/edit-->
                <edit name="spacing" mode="assign">
                        <int>0</int>
                </edit>
        </match>

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- /etc/fonts/local.conf file for local customizations -->
<fontconfig>
 <dir>/usr/share/fonts</dir>
 <dir>/usr/share/fonts/local</dir>
 <dir>/usr/share/fonts/zh_CN</dir>
 <dir>/usr/local/share/fonts</dir>
 <dir>/usr/share/fonts/zh_CN/TrueType</dir>
 <dir>/usr/X11R6/lib/X11/fonts</dir>

        <match target="font" >
                <test compare="more_eq" name="spacing" >
                        <const>dual</const>
                </test>
                <!--edit mode="assign" name="globaladvance" -->
                        <!--bool>false</bool-->
                <!--/edit-->
                <edit name="spacing" mode="assign">
                        <int>0</int>
                </edit>
        </match>

        <match target="font" >
                <test compare="more" target="pattern" name="weight" >
                        <const>medium</const>
                </test>
                <edit mode="assign" name="weight" >
                        <const>bold</const>
                </edit>
        </match>

        <match target="pattern">
                <test name="family">
                        <string>Tahoma</string>
                </test>
                <edit name="family" mode="append" binding="strong">
                        <string>SimSun</string>
                </edit>
        </match>

        <match target="pattern" >
                <test compare="eq" name="family" qual="any" >
                        <string>AR PL KaitiM GB</string>
                </test>
                <edit mode="prepend_first" binding="strong" name="family" >
                        <string>Bitstream Vera Sans</string>
                </edit>
        </match>

        <match target="pattern" >
                <test compare="eq" name="family" qual="any" >
                        <string>AR PL Mingti2L GB</string>
                </test>
                <edit mode="prepend_first" binding="strong" name="family" >
                        <string>Bitstream Vera Serif</string>
                </edit>
        </match>
        <match target="pattern" >
                <test compare="eq" name="family" qual="any" >
                        <string>AR PL KaitiM Big5</string>
                </test>
                <edit mode="prepend_first" binding="strong" name="family" >
                        <string>Bitstream Vera Sans</string>
                </edit>
        </match>

        <match target="pattern" >
                <test compare="eq" name="family" qual="any" >
                        <string>AR PL Mingti2L Big5</string>
                </test>
                <edit mode="prepend_first" binding="strong" name="family" >
                        <string>Bitstream Vera Serif</string>
                </edit>
        </match>

        <!--
        default settings for all fonts.
        -->

        <match target="font" >
                <edit mode="assign" name="antialias" >
                        <bool>true</bool>
                </edit>
                <edit mode="assign" name="hintstyle" >
                        <const>hintslight</const>
                </edit>
                <edit mode="assign" name="hint" >
                        <bool>true</bool>
                </edit>
                <edit mode="assign" name="autohint" >
                        <bool>false</bool>
                </edit>
        </match>
        <match target="font" >
                <test compare="more_eq" name="pixelsize" >
                        <int>12</int>
                </test>
                <test compare="less_eq" name="pixelsize" >
                        <int>18</int>
                </test>
                <!--test mode="assign" name="weight" >
                        <const>bold</const>
                </test-->
                <edit mode="assign" name="antialias" >
                        <bool>false</bool>
                </edit>
        </match>

        <!--
        bingding Bitstream Vera Sans Mono to monospace
        -->

        <match target="pattern" >
                <test name="family" qual="any" >
                        <string>monospace</string>
                </test>
                <edit mode="append" binding="strong" name="family" >
                        <string>Bitstream Vera Sans Mono</string>
                </edit>

        </match>

        <match target="font" >
                <test compare="contains" target="pattern" name="lang" >
                        <string>zh-cn</string>
                        <string>zh-tw</string>
                        <string>ja</string>
                        <string>ko</string>
                </test>
                <test compare="eq" name="spacing" >
                        <const>mono</const>
                </test>
                <edit mode="assign" name="globaladvance" >
                        <bool>false</bool>
                </edit>
                <edit mode="assign" name="size" >
                        <plus><double>1</double></plus>
                </edit>
        </match>

        <match target="font">
                <test name="family" qual="any" >
                        <string>SimHei</string>
                        <string>FZHeiTi</string>
                        <string>SimSun</string>
                        <string>NSimSun</string>
                </test>
                <edit mode="assign" name="globaladvance" >
                        <bool>false</bool>
                </edit>
        </match>

</fontconfig>

延伸阅读

文章来源于领测软件测试网 https://www.ltesting.net/


关于领测软件测试网 | 领测软件测试网合作伙伴 | 广告服务 | 投稿指南 | 联系我们 | 网站地图 | 友情链接
版权所有(C) 2003-2010 TestAge(领测软件测试网)|领测国际科技(北京)有限公司|软件测试工程师培训网 All Rights Reserved
北京市海淀区中关村南大街9号北京理工科技大厦1402室 京ICP备10010545号-5
技术支持和业务联系:info@testage.com.cn 电话:010-51297073

软件测试 | 领测国际ISTQBISTQB官网TMMiTMMi认证国际软件测试工程师认证领测软件测试网