|
发表于 2004-1-22 23:18:59
|
显示全部楼层
mahongxi,
会不会和你没有安装那个 MINGLIU.TTC 字体有关?
//
另外,
cat install.sh
#!/bin/bash
##############################################################
## this file is used to install the font package
##
## windeye Apr 20 , 2003
##
#############################################################
## 1. install the pacakge
## freetype-2.1.4-3.i386.rpm freetype-devel-2.1.4-3.i386.rpm
## freetype-demos-2.1.4-3.i386.rpm freetype-utils-2.1.4-3.i386.rpm
## fontconfig-2.1.94-1.i386.rpm fontconfig-devel-2.1-94-1.i386.rpm
## Xft2-2.1-3.i386.rpm
#############################################################
rpm -ivh *.rpm --force
#############################################################
## 2. add fonts for fontconfig
## put simsun.ttc MINGLIU.TTC tahoma.ttf ... into /usr/share/fonts/ or this
## directory
##
##
cp -f *.ttf /usr/share/fonts/.
cp -f *.ttc /usr/share/fonts/.
cp -f *.TTC /usr/share/fonts/.
fc-cache /usr/share/fonts/
###########################################################
## 3. add fonts for gtk1.0
## we can use fontconfig fonts , so link
##
mkdir -p /usr/share/fonts/local
ln -s /usr/share/fonts/*.ttf /usr/share/fonts/local/
ln -s /usr/share/fonts/*.ttc /usr/share/fonts/local/
ln -s /usr/share/fonts/*.TTC /usr/share/fonts/local/
ttmkfdir -d /usr/share/fonts/local/ -o /usr/share/fonts/local/fonts.scale
cp -f /usr/share/fonts/local/fonts.scale /usr/share/fonts/local/fonts.dir
chkfontpath --add /usr/share/fonts/local/
service xfs reload
#############################################################
## 3. modified gtk1.0 setting
## /etc/gtk/gtkrc.zh_CN
cp -f /etc/gtk/gtkrc.zh_CN /etc/gtk/gtkrc.zh_CN.old
cp -f gtkrc.zh_CN /etc/gtk/gtkrc.zh_CN
## 4. modified xmms setting
## use the same font setting with gtkrc.zh_CN
mkdir -p ~/.xmms
cp -f xmms-config ~/.xmms/config
## 5. modified miniChinput
##
cp -f Chinput.ad /usr/lib/Chinput/.
如果要备份的话, 请改一下高亮部分!!
//
//=============================================== |
|