1:Install the basic fonts package for Archlinux:
wqy-bitmapfontwqy-zenheittf-ms-fontsxorg-fonts-aliasxorg-fonts-encodingsxorg-fonts-miscxorg-font-utils2: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) |