Chinaunix首页 | 论坛 | 博客
  • 博客访问: 126313
  • 博文数量: 22
  • 博客积分: 948
  • 博客等级: 准尉
  • 技术积分: 225
  • 用 户 组: 普通用户
  • 注册时间: 2008-05-08 15:50
文章分类

全部博文(22)

文章存档

2015年(1)

2013年(1)

2010年(1)

2009年(19)

我的朋友

分类: LINUX

2009-12-19 22:45:51

1:Install the basic fonts package for Archlinux:

wqy-bitmapfont
wqy-zenhei
ttf-ms-fonts
xorg-fonts-alias
xorg-fonts-encodings
xorg-fonts-misc
xorg-font-utils

2:Configurate the ~/.fonts.conf file in current user,who will start the X server;
below is the details:

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
 <alias>
   <family>serif</family>
    <prefer>
       <family>Bitstream Vera Serif</family>
       <family>WenQuanYi Zen Hei</family>
       <family>DejaVu Serif</family>
       <family>WenQuanYi Micro Hei</family>
   </prefer>
 </alias>

 <alias>
 <family>sans-serif</family>
  <prefer>
   <family>Bitstream Vera Sans</family>
   <family>WenQuanYi Zen Hei</family>
   <family>DejaVu Sans</family>
   <family>WenQuanYi Micro Hei</family>
  </prefer>
 </alias>

<alias>
 <family>monospace</family>
  <prefer>
   <family>Bitstream Vera Sans Mono</family>
   <family>DejaVu Sans Mono</family>
   <family>WenQuanYi Micro Hei Mono</family>
   <family>WenQuanYi Zen Hei Mono</family>
  </prefer>
</alias>

<!-- Reject bitmap fonts in favour of Truetype, Postscript, etc. -->
 <selectfont>
    <rejectfont>
        <pattern>
            <patelt name="scalable">
                <bool>false</bool>
            </patelt>
        </pattern>
    </rejectfont>
 </selectfont>

 <!-- Replace Luxi Sans with a better-looking font - looks terrible at e.g. http://market-ticker.org/ -->
    <match name="family" target="pattern">
        <test name="family" qual="any">
            <string>Luxi Sans</string>
        </test>
        <edit name="family" mode="assign">
            <string>Liberation Sans</string>
        </edit>
    </match>

    <!-- Ubuntu options: lcdnone, lcddefault, lcdlight, lcdlegacy -->
    <!-- hintnone, hintslight, hintmedium, hintfull -->
    <!-- Keep autohint off -->
    <!-- Blurry fonts: Try rgb, bgr, vrgb, vbgr for "rgba" -->
    <!-- Blurry: http://forums.gentoo.org/viewtopic-p-5060979.html#5060979 -->
    <match target="font">
        <edit name="rgba" mode="assign"><const>rgb</const></edit>
        <edit name="autohint" mode="assign"><bool>false</bool></edit>
        <edit name="antialias" mode="assign"><bool>true</bool></edit>
        <edit name="hinting" mode="assign"><bool>true</bool></edit>
        <edit name="hintstyle" mode="assign"><const>hintmedium</const></edit>
        <edit name="lcdfilter" mode="assign"><const>lcddefault</const></edit>
    </match>

    <!-- Tweak Courier -->
    <match name="family" target="pattern">
        <test name="family" qual="any">
            <string>Courier</string>
        </test>
    <edit name="lcdfilter" mode="assign">
        <const>lcdlegacy</const>
    </edit>
    </match>

    <!-- Tweak Courier New -->
    <match name="family" target="pattern">
        <test name="family" qual="any">
                <string>Courier New</string>
        </test>
    <edit name="lcdfilter" mode="assign">
        <const>lcdlegacy</const>
    </edit>
    </match>
    <match target="pattern" >
    <edit mode="assign" name="autohint">
         <bool>true</bool>
    </edit>
   </match>
   <match target="font">
     <test name="weight" compare="more">
        <const>medium</const>
    </test>
    <edit name="autohint" mode="assign">
         <bool>false</bool>
    </edit>
   </match>
</fontconfig>



阅读(1868) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~