LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 3668|回复: 13

FC3下 ttmkfdir 的解决办法

[复制链接]
发表于 2004-11-12 08:27:08 | 显示全部楼层 |阅读模式
默认版本无法产生GB/GBK/GB18030/BIG5等编码,只统一生成 iso10646 编码,并且无法识别 ttc 字体,导致不少程序乱码。我把代码改了改,现在可以了。
http://download.linuxsir.cn/hupe ... r-3.0.9-16.i386.rpm

srpm 隔日上传,另外还有在FC3上编译的 zhcon,等连上 sir 的服务器后就上传。
发表于 2004-11-12 23:34:09 | 显示全部楼层
Very good
发表于 2004-11-13 00:26:00 | 显示全部楼层
装上了,一打开x m m s
X windows 马上重起
发表于 2004-11-13 00:29:13 | 显示全部楼层
我都是自己编辑fonts.dir嗬嗬,没问题的说
发表于 2004-11-13 00:50:43 | 显示全部楼层
一样的毛病,打开xmms就重启
 楼主| 发表于 2004-11-13 01:12:51 | 显示全部楼层
最初由 falay 发表
一样的毛病,打开xmms就重启


我的很正常啊,请看看xmms的字体有没有设置正确。安装字体的步骤请看Fedora 3 Release Note ,需要使用/usr/sbin/chkfontpath,或将字体路径加进 /etc/X11/xorg.conf中。
发表于 2004-11-13 01:23:54 | 显示全部楼层
最简单 的解决方法是:
下载一个编辑好的fonts.dir ,再copy 为 fonts.scale .



54

tahoma.ttf -misc-kai-medium-r-normal--0-0-0-0-p-0-ascii-0

tahoma.ttf -misc-kai-medium-r-normal--0-0-0-0-p-0-iso8859-1

tahoma.ttf -misc-kai-medium-r-normal--0-0-0-0-p-0-iso8859-15

simsun.ttf -misc-kai-medium-r-normal--0-0-0-0-c-0-gbk-0

simsun.ttf -misc-kai-medium-r-normal--0-0-0-0-c-0-iso10646-1

simsun.ttf -misc-kai-medium-r-normal--0-0-0-0-c-0-gb2312.1980-0

simsun.ttf -misc-fixed-medium-r-normal--0-0-0-0-c-0-gb2312.1980-0

simsun.ttf -misc-fixed-medium-r-normal--0-0-0-0-c-0-gbk-0

simsun.ttf -misc-fixed-medium-r-normal--0-0-0-0-c-0-iso10646-1

tahoma.ttf -misc-fixed-medium-r-normal--0-0-0-0-p-0-iso8859-1

simsun.ttf -misc-SimSun-medium-r-normal--0-0-0-0-c-0-gb2312.1980-0

ai=0.3:simsun.ttf -misc-SimSun-medium-i-normal--0-0-0-0-c-0-gb2312.1980-0

ds=y:simsun.ttf -misc-SimSun-bold-r-normal--0-0-0-0-c-0-gb2312.1980-0

ds=y:ai=0.3:simsun.ttf -misc-SimSun-bold-i-normal--0-0-0-0-c-0-gb2312.1980-0

tahoma.ttf -misc-SimSun-medium-r-normal--0-0-0-0-p-0-iso8859-1

ai=0.3:tahoma.ttf -misc-SimSun-medium-i-normal--0-0-0-0-p-0-iso8859-1

tahomabd.ttf -misc-SimSun-bold-r-normal--0-0-0-0-p-0-iso8859-1

ai=0.3:tahomabd.ttf -misc-SimSun-bold-i-normal--0-0-0-0-p-0-iso8859-1

simsun.ttf -misc-SimSun-medium-r-normal--0-0-0-0-c-0-gbk-0

ai=0.3:simsun.ttf -misc-SimSun-medium-i-normal--0-0-0-0-c-0-gbk-0

ds=y:simsun.ttf -misc-SimSun-bold-r-normal--0-0-0-0-c-0-gbk-0

ds=y:ai=0.3:simsun.ttf -misc-SimSun-bold-i-normal--0-0-0-0-c-0-gbk-0

simsun.ttf -misc-SimSun-medium-r-normal--0-0-0-0-p-0-fcd8859-15

ai=0.3:simsun.ttf -misc-SimSun-medium-i-normal--0-0-0-0-p-0-fcd8859-15

ds=y:simsun.ttf -misc-SimSun-bold-r-normal--0-0-0-0-p-0-fcd8859-15

ai=0.3:simsun.ttf -misc-SimSun-bold-i-normal--0-0-0-0-p-0-fcd8859-15

simsun.ttf -misc-SimSun-medium-r-normal--0-0-0-0-p-0-iso8859-15

ai=0.3:simsun.ttf -misc-SimSun-medium-i-normal--0-0-0-0-p-0-iso8859-15

ds=y:simsun.ttf -misc-SimSun-bold-r-normal--0-0-0-0-p-0-iso8859-15

ai=0.3:simsun.ttf -misc-SimSun-bold-i-normal--0-0-0-0-p-0-iso8859-15

simsun.ttf -misc-SimSun-medium-r-normal--0-0-0-0-c-0-iso10646-1

ai=0.3:simsun.ttf -misc-SimSun-medium-i-normal--0-0-0-0-c-0-iso10646-1

ds=y:simsun.ttf -misc-SimSun-bold-r-normal--0-0-0-0-c-0-iso10646-1

ds=y:ai=0.3:simsun.ttf -misc-SimSun-bold-i-normal--0-0-0-0-c-0-iso10646-1

simsun.ttf -misc-song-medium-r-normal--0-0-0-0-c-0-gb2312.1980-0

ai=0.3:simsun.ttf -misc-song-medium-i-normal--0-0-0-0-c-0-gb2312.1980-0

ds=y:simsun.ttf -misc-song-bold-r-normal--0-0-0-0-c-0-gb2312.1980-0

ds=y:ai=0.3:simsun.ttf -misc-song-bold-i-normal--0-0-0-0-c-0-gb2312.1980-0

tahoma.ttf -misc-song-medium-r-normal--0-0-0-0-p-0-iso8859-1

ai=0.3:tahoma.ttf -misc-song-medium-i-normal--0-0-0-0-p-0-iso8859-1

tahomabd.ttf -misc-song-bold-r-normal--0-0-0-0-p-0-iso8859-1

ai=0.3:tahomabd.ttf -misc-song-bold-i-normal--0-0-0-0-p-0-iso8859-1

simsun.ttf -misc-song-medium-r-normal--0-0-0-0-c-0-gbk-0

ai=0.3:simsun.ttf -misc-song-medium-i-normal--0-0-0-0-c-0-gbk-0

ds=y:simsun.ttf -misc-song-bold-r-normal--0-0-0-0-c-0-gbk-0

ds=y:ai=0.3:simsun.ttf -misc-song-bold-i-normal--0-0-0-0-c-0-gbk-0

simsun.ttf -misc-song-medium-r-normal--0-0-0-0-p-0-fcd8859-15

ai=0.3:simsun.ttf -misc-song-medium-i-normal--0-0-0-0-p-0-fcd8859-15

ds=y:simsun.ttf -misc-song-bold-r-normal--0-0-0-0-p-0-fcd8859-15

ai=0.3:simsun.ttf -misc-song-bold-i-normal--0-0-0-0-p-0-fcd8859-15

simsun.ttf -misc-song-medium-r-normal--0-0-0-0-p-0-iso8859-15

ai=0.3:simsun.ttf -misc-song-medium-i-normal--0-0-0-0-p-0-iso8859-15

ds=y:simsun.ttf -misc-song-bold-r-normal--0-0-0-0-p-0-iso8859-15

ai=0.3:simsun.ttf -misc-song-bold-i-normal--0-0-0-0-p-0-iso8859-15
 楼主| 发表于 2004-11-13 01:32:20 | 显示全部楼层

我的很正常!

发表于 2004-12-1 12:57:54 | 显示全部楼层

release note上关于添加字体的说明,方便大家查阅

#

If you wish to add new fonts to your Fedora Core 3 system, you must be aware that the steps necessary depend on which font subsystem is to use the new fonts. For the core X font subsystem, you must:

1. Create the /usr/share/fonts/local/ directory (if it doesn't already exist):

mkdir /usr/share/fonts/local/

2. Copy the new font file into /usr/share/fonts/local/

3. Update the font information by issuing the following commands (note that, due to formatting restrictions, the following commands may appear on more than one line; in use, each command should be entered on a single line):

ttmkfdir -d /usr/share/fonts/local/ -o /usr/share/fonts/local/fonts.scale

mkfontdir /usr/share/fonts/local/

4. If you had to create /usr/share/fonts/local/, you must then add it to the X font server (xfs) path:

chkfontpath --add /usr/share/fonts/local/

Adding new fonts to the fontconfig font subsystem is more straightforward; the new font file only needs to be copied into the /usr/share/fonts/ directory (individual users can modify their personal font configuration by copying the font file into the ~/.fonts/ directory).

After the new font has been copied, use fc-cache to update the font information cache:

fc-cache <directory>

(Where <directory> would be either the /usr/share/fonts/ or ~/.fonts/ directories.)

Individual users may also install fonts graphically, by browsing fonts:/// in Nautilus, and dragging the new font files there.

NOTE: If the font filename ends with ".gz", it has been compressed with gzip, and must be decompressed (with the gunzip command) before the fontconfig font subsystem can use the font.
发表于 2004-12-1 14:47:07 | 显示全部楼层
使用顶楼哥们提供的ttmkfdir,就已经可以很好生成GB/GBK/GB18030/BIG5等编码的字体。其他没再做什么修改直接使用
simsun 做为界面字体。效果自我感觉已经不错了,学习linux不能天天为了字体犯愁吧。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表