QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1926|回复: 11

用xfontsel看不到自己添加的字体。。。。

[复制链接]
发表于 2004-2-18 00:19:49 | 显示全部楼层 |阅读模式
自己添加了simsun等几个字体,用fc-list可以看到,但是用xfontsel却看不到,为什么。。
发表于 2004-2-18 00:23:01 | 显示全部楼层
用fc-list可以看到,但是用fc-list却看不到

什么意思?
回复

使用道具 举报

 楼主| 发表于 2004-2-18 00:25:01 | 显示全部楼层
另外,startx时系统提示:

Could not init font path element /usr/share/fonts/zh_CN(我新添加的字体都放在这个目录里), removing from list!

进入X后,运行程序,基于GTK2的显示正常,基于QT和GTK1.x的,选择字体时在字体列表里看不到添加的字体....
回复

使用道具 举报

 楼主| 发表于 2004-2-18 00:26:30 | 显示全部楼层
[quote:174479c365="Bluedata"]
用fc-list可以看到,但是用fc-list却看不到

什么意思?[/quote]

sorry,打错里。。。是xfontsel选择字体时看不到添加的字体
回复

使用道具 举报

发表于 2004-2-18 00:30:13 | 显示全部楼层
1.fc-cache -fv
2.把字体路径加入/etc/X11/XF86Config
回复

使用道具 举报

 楼主| 发表于 2004-2-18 00:33:21 | 显示全部楼层
已经加过的。。。
FontPath     "/usr/share/fonts/zh_CN/"
但一直不行。。
回复

使用道具 举报

发表于 2004-2-18 21:51:10 | 显示全部楼层
edit /etc/X11/fs/config
add font path
dont 't edit XF86config

read the rh release notes,it is provide some method to add new font
回复

使用道具 举报

发表于 2004-2-19 01:03:10 | 显示全部楼层
我的/etc/X11/fs/config这个文件就没有我自己添加的字体文件的路径啊。
或者还有/etc/fonts/fonts.conf的原因?
回复

使用道具 举报

发表于 2004-2-19 18:22:24 | 显示全部楼层
应当是xfs的bug,看看你的字体文件名里面有没有空格,有的话改掉试试
回复

使用道具 举报

发表于 2004-2-26 22:37:45 | 显示全部楼层
ttmkfdir
cp fonts.dir fonts.scale
行不?
回复

使用道具 举报

 楼主| 发表于 2004-2-28 14:31:46 | 显示全部楼层
[quote:d10a995a23="cnhnln"]ttmkfdir
cp fonts.dir fonts.scale
行不?[/quote]

开始就作过。。。。采用的方法在RH里可以成功添加字体,但在Debian下没有成功,后来用xfs,就没事了。。。
回复

使用道具 举报

发表于 2004-2-28 19:31:38 | 显示全部楼层
chkfontdir --add xxxx
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-5-5 08:25 , Processed in 0.077895 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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