LinuxSir.cn,穿越时空的Linuxsir!

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

字体问题求助![我快吐血,救救我!]

[复制链接]
发表于 2004-9-21 14:58:13 | 显示全部楼层 |阅读模式
I want to install some truetype fonts in my slackware 10 box
they are :simsun.ttf,tahoma.ttf,verdana.ttf

and i copy them into /usr/share/fonts/ttf

then i run mkfontdir and mkfontscale to create a fonts.dir and fonts.scale

but it have not the encoding of gb

then i try to download the ttmkfdir
http://www.joerg-pommnitz.de/TrueType/ttmkfdir.tar.gz

when i run make ,it errors

then i try to download xttmgr
http://firefly.idv.tw/setfont-xf ... xttmgr-0.9.6.tar.gz
i install it

but in slackware their in no Xf86config

i can't use the function of "xttmgr --add"

so i try "xttmgr --mkfontdir" in /usr/share/fonts/ttf/

it create the file font.dir and fonts.scale

but thier is also no encoding of gb


i am ft !!!

Anybody help me~~~:help :help :thank :thank
发表于 2004-9-21 15:30:47 | 显示全部楼层
u can write gb encoding by yourselves.
 楼主| 发表于 2004-9-21 15:54:27 | 显示全部楼层
thx
i tried
i add the gb2312.0 decoding in the file

then ,i try to select the font in xmms
when i put cousor in the font
i echo "the select font is not available"
 楼主| 发表于 2004-9-21 17:15:50 | 显示全部楼层
if you have ttmkfdir

PLEASE HELP ME .

please put simsun.ttf,tahoma.ttf,verdana.ttf in a dir
and then run ttmkfdir to create a font.dir

i need it .thx!
 楼主| 发表于 2004-9-21 21:54:37 | 显示全部楼层

字体问题求助![我快吐血,救救我!]

大侠们好,现在我是第2遍写这个帖子求助,刚刚因为点错后退导致写的全部没了.现在很郁闷,大家看在我这么辛苦的份上一定要帮帮我!
谢谢!谢谢!谢谢!谢谢!谢谢!谢谢!谢谢!

请一定看完,帮帮我!谢谢

我全新安装的slk 10

没安装gnome,kde,kde i18n

在解决了声音和显示的问题之后

我准备安装truetype字体:
simsun.ttf,tahoma.ttf,verdana.ttf

按照论坛上讲述的顺序,我先将这三个字体cp到一个文件夹了
我是/usr/share/fonts/ttf/

然后我在Xorg.conf里加入了FontPath

下面的问题是
怎么产生fonts.dir和fonts.scale文件


按照论坛是上的说法用mkfontdir和mkfontscale是不会有gb的encoding的
我试了一下,真的没有

然后我下载了ttmkfdir
http://www.joerg-pommnitz.de/TrueType/ttmkfdir.tar.gz

起先我要编译,产生了很多错误

然后我想能不能把我以前安装在RH9里的ttmkfdir拷过来

我试了一下,运行

返回:


找不到/usr/X11R6/lib/fonts/encoding/large/gbk-0.enc文件
找不到/usr/X11R6/lib/fonts/encoding/large/gb2312.1980-0.enc文件
......(还有很多省略了)
segmental fault


我到/usr/X11R6/lib/fonts/encoding/large/看了一下,所有enc文件全部都是gbk-0.enc.gz这样的,于是我把他们全部解开了.

然后再运行还是segmental fault

后来我在linuxquestion上看到有人说,直接解开ttmkfdir.tar.gz下面有一个ttmkfdir.linuxbin.glibc2,把这个拷过去就可以了

我试了一下,可以运行,但是还是没有产生gb的encoding

我郁闷了~~

这期间,我还试了一下xttmgr,照样没能产生gb的encoding

请问各位大侠,这到底是怎么回事???

x11-fonts-*我全都安装了的

谢谢谢谢!!!!:thank
发表于 2004-9-21 22:37:17 | 显示全部楼层
不用为了一个ttmkfdir搞这么复杂吧?
slackware里编译ttmkfdir要打上补丁.
其实根本不用装这种一次性的软件,fonts.dir论坛上多的是,搜一个拿来用就是了.
发表于 2004-9-22 01:32:07 | 显示全部楼层
不用这么麻烦了,运行mkfontscale就可以生成font.scale(注意mkfontdir不行!)然后打开他修改,加上一行(可以复制)把他改成GBK-0。注意文件第一行那个行数也要加1!
最后复制一个这个文件,改名为font.dir(两个文件内容是一样的)
enjoy!
发表于 2004-9-22 20:23:42 | 显示全部楼层
或者是下载一个ttmkfdir的rpm包,然后rpm2tgz一下安装,我就是这样的,挺好用的。
发表于 2004-9-22 20:29:10 | 显示全部楼层
我是直接下载编译好的ttmkfdir,改了权限,直接放到/sbin下面就可以用了。
发表于 2004-9-23 00:23:10 | 显示全部楼层

here it is

1. make a folder named as /usr/share/fonts/local,
2. copy font files from your windows to /usr/share/fonts/local
3. use this perl scrip
find . | perl -ne 'chomp; next unless -e; $new=lc($_); rename $_,$new'
to change all font name to lower case
4. run "fc-cache /usr/share/fonts/local"
5. make changes in /etc/profiled.d/lang.sh if bash is your shell lang, or /etc/profile.d/lang.csh if csh. Two things: change LANG to en_US.UTF-8, add LC_CTYPE=zh_CN.GB2312.

That is it. Now you can see chinese words under En environment.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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