LinuxSir.cn,穿越时空的Linuxsir!

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

误删字体求救,如何重装fixed等字体?

[复制链接]
发表于 2004-11-8 23:35:50 | 显示全部楼层 |阅读模式
我在drakfont里面添加了很多M$的字体,结果有点冲突,网页上某些英文被显示成粗体,我就想把它们卸载,结果操作不慎,删了很多MDK的字体,重启就进不了X了:“Fatal server error: could not open default font 'fixed'”

google得如下解决办法:
问:X-Window启动不了,查看/var/log/XFree86.0.log中有如下错误信息:“Fatal server error: could not open default font 'fixed'”,如何解决?
答:提示信息中说明,由于找不到“fixed”这种缺省的系统字体导致X-Window启动不了。X系统的缺省字体“fixed”系列存放在/usr/X11R6/lib/X11/fonts/misc目录下,只要没有误删这个目录就可以恢复。方法如下:编辑/etc/X11/XF86Config,在“Section ‘Files’”里的“FontPath”段加入以下字体路径定义:

FontPath "/usr/X11R6/lib/X11/fonts/misc"

保存后,重新启动X-Window(startx)即可。
=========================================
但问题是我已经卸载了字体了,上文没有重装字体的方法。我去下载了一些freetype的字体回来装,装了之后还没有这个fixed。我就照着MDK9.0美化方法(顶置贴)想只使用simsun,tahoma两种字体,相应改了一些fonts.conf,还是不行,似乎还在要求这个fixed.后来又装了一些字体,及配置,没有启动成X,不过default font 变成了cursor.
Fatal server error:
could not open default cursor font 'cursor'
如何装原有的字体,请各位指点,
完整的log在这里:

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
发表于 2004-11-8 23:52:38 | 显示全部楼层

我只能给你一个思路

找找xorg-x11-fonts这样的包,第一张盘和第二张盘上都有,全装上。这样应该至少可以进X的。
 楼主| 发表于 2004-11-9 00:16:13 | 显示全部楼层

谢谢,我试试。

没有找到这样的包,因为我是10.0 official
只有:
font-ttf-****-mdk-i586.rpm
和XFree86-75dpi-fonts-这样的包,下载中。。。。
ftp://infonet.ustc.edu.cn/FreeOS ... isk1/Mandrake/RPMS/
 楼主| 发表于 2004-11-9 12:25:28 | 显示全部楼层
下了font-ttf-****-mdk-i586.rpm之类的包,有些装不了(文件下载错误?)其他装了也还有同样的错误。
 楼主| 发表于 2004-11-9 12:43:49 | 显示全部楼层

找到这同类问题:

Author X problem: Fatal server error: could not open default cursor font 'cursor'
s1l3ntbob

Junior Member

Posts: 3 Posted: Jul 23, 2002 - 12:59   
--------------------------------------------------------------------------------
Help!

X refuses to start and the last entry in the XFree86.0.log is

could not open default cursor font 'cursor'

I have been completely unable to fix this, or to find out what file it is referring to.

Please help

Thanks


    Reply   Reply with quote  
Birdman

Top Member

Posts: 263 Posted: Jul 23, 2002 - 04:02   
--------------------------------------------------------------------------------
How are you for disk space? The times when I have had problems with X loading has been because I have been very low on disk space on the root partition. The first time it happened there had been a huge coredump that had filled up over 100meg  Typing

df -h

at the prompt will give you info on your disk space.
_________________
Alan Lakin

    Reply   Reply with quote  
s1l3ntbob

Junior Member

Posts: 3 Posted: Jul 23, 2002 - 05:26   
--------------------------------------------------------------------------------
I've got 658 megs free on the root partition.

X keeps trying to start and gets as far as the nvidia logo before it dies and then keeps restarting into infinity until i kill it with /etc/init.d/gdm stop (in between its restarts).



    Reply   Reply with quote  
s1l3ntbob

Junior Member

Posts: 3 Posted: Jul 25, 2002 - 06:55   
--------------------------------------------------------------------------------
Gah.

Found the problem. A package (xfonts-gimpers) diverted the path for the cursor, and the fonts from the package weren't included in my XF86Config file...

d'oh!

===========================================
我在装了xft2-2.1.1-3mdk.firefly.i586.rpm之后,Fatal error就由fixed变成了cursor,不知道是不是也要添加该包的路径(如何知道它的路径?)到XF86Config?或者卸载该包?
 楼主| 发表于 2004-11-9 14:10:51 | 显示全部楼层

已解决。

果然,在XF86Config中添加cursor所在的路径/usr/X11R6/lib/X11/fonts/misc/之后,重启就成功进入X了。
好辛苦啊!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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