|
|

楼主 |
发表于 2007-9-24 13:04:13
|
显示全部楼层
Post by d00m3d
楼主能否再详细一点点?
我的是 lfs 基本系统上做的 BLFS,所以下载 tar.gz 包,它的说明中主要步骤是这样的,
1
tar zxvf wqy-zenhei*.tar.gz
make -p /usr/share/fonts/wenquanyi
mv wqy-zenhei /usr/share/fonts/wenquanyi/ ----- 注意最后的 '/'
2
edit /etc/X11/xorg.conf or /etc/X11/XF86Config-4
and find the section with FontPath. append
FontPath /usr/share/fonts/wenquanyi/wqy-zenhei
under any of the FontPath line, save this file.
3
if your system has /etc/fonts/fonts.conf, edit
it and append
<dir>/usr/share/fonts/wenquanyi/wqy-zenhei/</dir>
before </fontconfig>
4
If your system are using fontconfig 2.4.x, move 44-wqy-zenhei.conf
in the extracted files to ~/.fonts.conf
我的 BLFS 上,只要 用 root :(我写的小脚本)
-------------------------------------
tar xvf wqy-zenhei-0.2.15-1.tar.gz
mkdir -p /usr/share/fonts/wenquanyi/
mv wqy-zenhei /usr/share/fonts/wenquanyi/
sed -i -e 's@<dir>~/.fonts</dir>@&\n\t<dir>/usr/share/fonts/wenquanyi/wqy-zenhei/</dir>@' /etc/fonts/fonts.conf
fc-cache -f -v
-----------------------------
重启 X 就好了。
fcitx firefox 都显示正常。第一次做 BLFS 时用的还是 simsun 字体(blush,当时正黑体还没有出来) |
|