QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1789|回复: 16

something wrong with my simsun

[复制链接]
发表于 2005-3-24 18:02:35 | 显示全部楼层 |阅读模式
I use the "xlsfonts|grep simsun" command in the terminal.
and the result is :
-misc-simsun-medium-r-normal--0-0-0-0-c-0-ascii-0
-misc-simsun-medium-r-normal--0-0-0-0-c-0-iso10646-1
-misc-simsun-medium-r-normal--0-0-0-0-c-0-iso8859-1
-misc-simsun-medium-r-normal--0-0-0-0-c-0-iso8859-15
-misc-simsun-medium-r-normal--0-0-0-0-c-0-koi8-r

but I didn't found the sinsum font belongs to gb2312 family!
Is there anybody who can tell me why?
thank you!
发表于 2005-3-24 18:22:02 | 显示全部楼层
你的simsun.ttf放在哪里。
回复

使用道具 举报

 楼主| 发表于 2005-3-24 18:40:01 | 显示全部楼层
there is a simsun.ttc file in /usr/X11R6/lib/X11/fonts/TTF/
and I put a simsun.ttf file in /usr/X11R6/lib/X11/fonts/TrueType/
this two folders are all created by myself.
and I add these two paths in the /etc/X11/fs/conf file to let the X window find these fonts!

Thank you very much for you kindness
回复

使用道具 举报

发表于 2005-3-24 18:56:37 | 显示全部楼层
cp simsun.ttf to:
/usr/share/fonts/zh_CN/TrueType
回复

使用道具 举报

发表于 2005-3-24 19:04:29 | 显示全部楼层
fc-cache -fv
回复

使用道具 举报

 楼主| 发表于 2005-3-24 19:06:05 | 显示全部楼层
do I need to  do the "ttmkfdir>fonts.dir and cp fonts.dir font.scale"  or something else after I do what you told me --- "cp simsun.ttf to: /usr/share/fonts/zh_CN/TrueType"
回复

使用道具 举报

发表于 2005-3-24 19:08:15 | 显示全部楼层
[quote:bc20347d67="潇湘馆主"]fc-cache -fv[/quote]
run this
回复

使用道具 举报

 楼主| 发表于 2005-3-24 19:08:50 | 显示全部楼层
can you tell me what's the function of "fc-cache -fv"
however, thank you very much!
回复

使用道具 举报

 楼主| 发表于 2005-3-24 19:11:08 | 显示全部楼层
the result is :
[root@localhost fs]# fc-cache -fv
fc-cache: "/usr/share/fonts": caching, 0 fonts, 7 dirs
fc-cache: "/usr/share/fonts/openoffice": caching, 1 fonts, 0 dirs
fc-cache: "/usr/share/fonts/default": caching, 0 fonts, 2 dirs
fc-cache: "/usr/share/fonts/default/ghostscript": caching, 17 fonts, 0 dirs
fc-cache: "/usr/share/fonts/default/Type1": caching, 35 fonts, 0 dirs
fc-cache: "/usr/share/fonts/bitmap-fonts": caching, 32 fonts, 0 dirs
fc-cache: "/usr/share/fonts/zh_TW": caching, 0 fonts, 1 dirs
fc-cache: "/usr/share/fonts/zh_TW/TrueType": caching, 2 fonts, 0 dirs
fc-cache: "/usr/share/fonts/local": caching, 1 fonts, 0 dirs
fc-cache: "/usr/share/fonts/zh_CN": caching, 0 fonts, 1 dirs
fc-cache: "/usr/share/fonts/zh_CN/TrueType": caching, 16 fonts, 0 dirs
fc-cache: "/usr/share/fonts/bitstream-vera": caching, 10 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts": caching, 0 fonts, 12 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/util": caching, 0 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/OTF": caching, 0 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/75dpi": caching, 294 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/CID": caching, 0 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/Speedo": caching, 0 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/TrueType": caching, 1 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/TTF": caching, 14 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/local": caching, 0 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/Type1": caching, 29 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/encodings": caching, 0 fonts, 1 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/encodings/large": caching, 0 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/100dpi": caching, 294 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/misc": caching, 52 fonts, 0 dirs
fc-cache: "/usr/share/fonts/zh_CN/TrueType": caching, 16 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/TTF": caching, 14 fonts, 0 dirs
fc-cache: "/root/.fonts": skipping, no such directory
fc-cache: succeeded

then what should I do next?
回复

使用道具 举报

发表于 2005-3-24 19:29:56 | 显示全部楼层
logout and login
回复

使用道具 举报

 楼主| 发表于 2005-3-24 19:46:38 | 显示全部楼层
I'm so sorry, it still doesn't work.
the font simsun in the gnome desktop can be seen well
but the application software based on the gtk fonts can't get the right font, I don't know why!
I guess:
the desktop get the font information from the configuration file /etc/X11/xorg.conf, but the software based on the gtk may get font infortion from somewhere else
I've modified the configuration file /etc/X11/xorg.conf, and the configuration file /etc/X11/fs/fonts.conf.
I don't know which one is for the gtk based application.
can some explain the differences for me ?
and thank you again for you kind-hearted men.
(by the way, I'll explain that I haven't successfully installed the chinese input software, so I can only use english, and I'm sorry for that)
回复

使用道具 举报

发表于 2005-3-24 23:12:36 | 显示全部楼层
可能是ttmkfdir的问题,识别不到中文编码。自己改改fonts.dir就行
加一行
-misc-simsun-medium-r-normal--0-0-0-0-c-0-gbk-r
之类的
回复

使用道具 举报

 楼主| 发表于 2005-3-25 20:18:08 | 显示全部楼层
对,很对,就是ttmkfdir的问题
我自己改了font.dir,我加了一行gb2312编码的simsun,但是当我重启X Window的时候,那个font.dir文件居然又自己改变成刚用ttmkfdir是的font.dir文件,也就是我刚才增加的gb2312编码方式又没有了,这是怎么回事?怎么增加这个编码啊,我到www.X.org,www.xfree86.org等很多地方查过了,但是还是没有找到结果,有没有谁知道为什么?
谢谢了,谢谢你们的帮助。
回复

使用道具 举报

发表于 2005-3-25 22:20:50 | 显示全部楼层
xfs字体服务器关掉
然后把所有用的字体的路径都加到xorg.conf文件里
试试
回复

使用道具 举报

 楼主| 发表于 2005-3-26 09:08:45 | 显示全部楼层
xfs是不是x window font service?把这个关掉是不是就是让用xfs字体的程序都改用另外一个路径?
您能不能给我讲讲字体调用是什么原理吗?就是基于什么的程序用什么字体,从哪个路径调用?是通过那个文件找到字体的(我发觉有好几个文件可以改变字体的路径,比如说xorg.conf和/etc/X11/fs/font.conf)?
另外,我发觉字体设置不正确的话,每次我在终端直接运行像xmms,scim,chinput这种基于gtk字体程序的时候,终端都会提示:locale not supported by Xlib, locale set to C
谢谢您了。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-8 08:42 , Processed in 0.066315 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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