|
发表于 2006-3-30 18:07:38
|
显示全部楼层
我刚才试了一些方法,算是搞定了:
我在
/usr/share/fonts/chinese/extras/
中放了这些字体:
fireflyR11.pcf.gz fireflysung.ttf wenquanyi_11ptb.pcf.gz
fireflyR12.pcf.gz wenquanyi_11pt.pcf.gz
fireflyR13.pcf.gz wenquanyi_12ptb.pcf.gz
fireflyR14.pcf.gz ming_uni.ttf wenquanyi_12pt.pcf.gz
fireflyR15.pcf.gz wenquanyi_10ptb.pcf.gz wenquanyi_9ptb.pcf.gz
fireflyR16.pcf.gz wenquanyi_10pt.pcf.gz wenquanyi_9pt.pcf.gz
分别是firefly点阵和向量,文泉译点阵,还有一个ming_uni扩展字体。
为了让xfs能找到字体,需要用chkfontpath命令加入这个位置:
- #chkfontpath -a /usr/share/fonts/chinese/extras/
复制代码
然后建立的fonts.scale文件如下:
- $cat fonts.dir
- 37
- fireflyR11.pcf.gz -firefly-firefly new sung-medium-r-normal--11-110-75-75-p-109-iso10646-1
- fireflyR12.pcf.gz -firefly-firefly new sung-medium-r-normal--12-120-75-75-p-119-iso10646-1
- fireflyR13.pcf.gz -firefly-firefly new sung-medium-r-normal--13-120-75-75-p-129-iso10646-1
- fireflyR14.pcf.gz -firefly-firefly new sung-medium-r-normal--14-100-100-100-p-139-iso10646-1
- fireflyR15.pcf.gz -firefly-firefly new sung-medium-r-normal--15-140-75-75-p-149-iso10646-1
- fireflyR16.pcf.gz -firefly-firefly new sung-medium-r-normal--16-150-75-75-p-159-iso10646-1
- fireflysung.ttf -misc-ar pl new sung-medium-r-normal--0-0-0-0-c-0-ascii-0
- fireflysung.ttf -misc-ar pl new sung-medium-r-normal--0-0-0-0-c-0-iso10646-1
- fireflysung.ttf -misc-ar pl new sung-medium-r-normal--0-0-0-0-c-0-koi8-r
- ming_uni.ttf -misc-ming(for iso10646)-medium-r-normal--0-0-0-0-c-0-ascii-0
- ming_uni.ttf -misc-ming(for iso10646)-medium-r-normal--0-0-0-0-c-0-iso10646-1
- ming_uni.ttf -misc-ming(for iso10646)-medium-r-normal--0-0-0-0-c-0-iso8859-1
- ming_uni.ttf -misc-ming(for iso10646)-medium-r-normal--0-0-0-0-c-0-iso8859-15
- wenquanyi_10pt.pcf.gz -wenquanyi-wenquanyi bitmap song-medium-r-normal--13-130-75-75-p-80-iso10646-1
- wenquanyi_10ptb.pcf.gz -wenquanyi-wenquanyi bitmap song-bold-r-normal--13-130-75-75-p-80-iso10646-1
- wenquanyi_11pt.pcf.gz -wenquanyi-wenquanyi bitmap song-medium-r-normal--15-150-75-75-p-80-iso10646-1
- wenquanyi_11ptb.pcf.gz -wenquanyi-wenquanyi bitmap song-bold-r-normal--15-150-75-75-p-80-iso10646-1
- wenquanyi_12pt.pcf.gz -wenquanyi-wenquanyi bitmap song-medium-r-normal--16-160-75-75-p-80-iso10646-1
- wenquanyi_12ptb.pcf.gz -wenquanyi-wenquanyi bitmap song-bold-r-normal--16-160-75-75-p-80-iso10646-1
- wenquanyi_9pt.pcf.gz -wenquanyi-wenquanyi bitmap song-medium-r-normal--12-120-75-75-p-119-iso10646-1
- wenquanyi_9ptb.pcf.gz -wenquanyi-wenquanyi bitmap song-bold-r-normal--12-120-75-75-p-119-iso10646-1
- wenquanyi_10pt.pcf.gz -wenquanyi-wenquanyi bitmap song-medium-r-normal--13-130-75-75-p-80-gbk-0
- wenquanyi_10ptb.pcf.gz -wenquanyi-wenquanyi bitmap song-bold-r-normal--13-130-75-75-p-80-gbk-0
- wenquanyi_11pt.pcf.gz -wenquanyi-wenquanyi bitmap song-medium-r-normal--15-150-75-75-p-80-gbk-0
- wenquanyi_11ptb.pcf.gz -wenquanyi-wenquanyi bitmap song-bold-r-normal--15-150-75-75-p-80-gbk-0
- wenquanyi_12pt.pcf.gz -wenquanyi-wenquanyi bitmap song-medium-r-normal--16-160-75-75-p-80-gbk-0
- wenquanyi_12ptb.pcf.gz -wenquanyi-wenquanyi bitmap song-bold-r-normal--16-160-75-75-p-80-gbk-0
- wenquanyi_9pt.pcf.gz -wenquanyi-wenquanyi bitmap song-medium-r-normal--12-120-75-75-p-119-gbk-0
- wenquanyi_9ptb.pcf.gz -wenquanyi-wenquanyi bitmap song-bold-r-normal--12-120-75-75-p-119-gbk-0
- wenquanyi_10pt.pcf.gz -wenquanyi-wenquanyi bitmap song-medium-r-normal--13-130-75-75-p-80-gb2312.1980-0
- wenquanyi_10ptb.pcf.gz -wenquanyi-wenquanyi bitmap song-bold-r-normal--13-130-75-75-p-80-gb2312.1980-0
- wenquanyi_11pt.pcf.gz -wenquanyi-wenquanyi bitmap song-medium-r-normal--15-150-75-75-p-80-gb2312.1980-0
- wenquanyi_11ptb.pcf.gz -wenquanyi-wenquanyi bitmap song-bold-r-normal--15-150-75-75-p-80-gb2312.1980-0
- wenquanyi_12pt.pcf.gz -wenquanyi-wenquanyi bitmap song-medium-r-normal--16-160-75-75-p-80-gb2312.1980-0
- wenquanyi_12ptb.pcf.gz -wenquanyi-wenquanyi bitmap song-bold-r-normal--16-160-75-75-p-80-gb2312.1980-0
- wenquanyi_9pt.pcf.gz -wenquanyi-wenquanyi bitmap song-medium-r-normal--12-120-75-75-p-119-gb2312.1980-0
- wenquanyi_9ptb.pcf.gz -wenquanyi-wenquanyi bitmap song-bold-r-normal--12-120-75-75-p-119-gb2312.1980-0
复制代码
还有fonts.scale文件:
- $cat fonts.scale
- 7
- ming_uni.ttf -misc-Ming(for ISO10646)-medium-r-normal--0-0-0-0-c-0-ascii-0
- ming_uni.ttf -misc-Ming(for ISO10646)-medium-r-normal--0-0-0-0-c-0-iso10646-1
- ming_uni.ttf -misc-Ming(for ISO10646)-medium-r-normal--0-0-0-0-c-0-iso8859-1
- ming_uni.ttf -misc-Ming(for ISO10646)-medium-r-normal--0-0-0-0-c-0-iso8859-15
- fireflysung.ttf -misc-AR PL New Sung-medium-r-normal--0-0-0-0-c-0-ascii-0
- fireflysung.ttf -misc-AR PL New Sung-medium-r-normal--0-0-0-0-c-0-iso10646-1
- fireflysung.ttf -misc-AR PL New Sung-medium-r-normal--0-0-0-0-c-0-koi8-r
复制代码
然后重启(或者是重启xfs和X,如果不是很明白就索性重启)。
这样应该就可以搞定了,你可以先xinit,然后在终端里输入 twm试一下,因为twm默认因为会缺少-gb*-字体而启动非常缓慢——这个也是wine在zh_CN.UTF-8环境下的问题。
回头我把整个目录打包成rpm,和大家分享一下。
P.S:修改后,如果出现进入gnome崩溃的状况,可能是fontconfig的一个bug,用root运行一下fc-cache -f就可以了。 |
|