星期二, 十二月 05, 2006

安装文泉驿字体

$ cat /usr/src/WenQuanYi-bitmap-font/.config
pkgname = "WenQuanYi-bitmap-font";
version = "0.7.0-4";
user = "WenQuanYi-bitmap-font";
groups = "xwindow";
group = "WenQuanYi-bitmap-font";
archive = "wqy-bitmapfont-pcf-0.7.0-4.tar.gz";
command = "tar xfz wqy-bitmapfont-pcf-0.7.0-4.tar.gz";
command = "mkdir -p /usr/share/fonts/chinese";
command = "mv wqy-bitmapfont /usr/share/fonts/chinese/WenQuanYi-bitmap-font";
command = "cd /usr/share/fonts/chinese/WenQuanYi-bitmap-font";
command = "rm -f fonts*";
command = "mkfontdir";
command = "cp fonts.dir fonts.scale";
time = "20061206 02:45:14 Wed";
然后以 root 运行:
# xset +fp /usr/share/fonts/chinese/WenQuanYi-bitmap-font
# vi /etc/X11/xorg.conf
...
FontPath "/usr/share/fonts/chinese/WenQuanYi-bitmap-font"
# fc-cache -f -v

检查:
# xlsfonts | grep wenquanyi
# fc-list | grep "WenQuanYi"
WenQuanYi Bitmap Song:style=Bold
WenQuanYi Bitmap Song:style=Regular

这之后在字体选择中就可以找到了。

没有评论: