Personal tools
You are here: Home 资源中心 原始部落 13109 把英文字母的字体设置成小1号
Document Actions

把英文字母的字体设置成小1号

by yangh posted on Apr 03, 2005 12:54 AM last modified Apr 03, 2005 12:55 AM
通过 fontconfig 配置,把英文字母的字体设置成比汉字字体小1号。

通过 fontconfig 的配置文件,使英文字母的字体设置成比汉字字体小1号。

在家目录下的 ".fonts.conf" 中加入如下内容,如果 ~/.fonts.conf 已经存在,则把下面的 match ... 部分加入到其中的 fontconfig 中即可。

~/.fonts.conf:

   <?xml version="1.0"?>
   <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
   <!-- /etc/fonts/fonts.conf file to configure system font access -->
   <fontconfig>

       <match target="pattern">
         <test name="lang" compare="not_eq">
           <string>zh-cn</string>
         </test>
         <edit name="size" mode="assign">
           <minus><name>size</name><int>1</int></minus>
         </edit>
        </match>

   </fontconfig>

感谢 xLoneStar 提供的配置方法。

参考: "Fontconfig 使用手册":...

效果图:

Screenshot-minus-abc.png