could not open default font 'fixed'

Hi all,

I am new to this forum, so it's my first posting.

In fact, I don't have a problem with my X Window System when starting up my Debian environment. But when I try to setup the Maemo Development environment for the Nokia 770 Internet Tablet, I encounter the following error when executing following script :

#!/bin/sh -e
prefix=/scratchbox/users/${LOGNAME}/targets/SDK_PC/usr
export LD_LIBRARY_PATH=${prefix}/lib; export LD_LIBRARY_PATH
exec ${prefix}/bin/Xephyr :2 -host-cursor -screen 800x480x16 -dpi 96 -ac

$ ./start-xephyr.sh &

This results in :

Fatal server error:
could not open default font 'fixed'

The same behaviour is true for :

Xvnc -geometry 800x480 -dpi 72 -ac :2 -depth 16 -rfbauth ~/.vnc/passwd &

which results in the same behaviour

04/08/06 20:28:16 Xvnc version 3.3.7 - built Apr 27 2006 07:12:22
04/08/06 20:28:16 Copyright (C) 2002-2003 RealVNC Ltd.
04/08/06 20:28:16 Copyright (C) 1994-2000 AT&T Laboratories Cambridge.
04/08/06 20:28:16 All Rights Reserved.
04/08/06 20:28:16 See http://www.realvnc.com for information on VNC
04/08/06 20:28:16 Desktop name 'x11' (laptop:2)
04/08/06 20:28:16 Protocol version supported 3.3
04/08/06 20:28:16 Listening for VNC connections on TCP port 5902

Fatal server error:
could not open default font 'fixed'

I have already re-installed xfonts-base, but this isn't helping so far.

In my xorg.conf file the following is there :

Section "Files"

# local font server
# if the local font server has problems, we can fall back on these
#FontPath "/usr/lib/X11/fonts/misc"
#FontPath "/usr/share/fonts/X11/cyrillic"
#FontPath "/usr/lib/X11/fonts/cyrillic"
#FontPath "/usr/lib/X11/fonts/Type1"
#FontPath "/usr/lib/X11/fonts/CID"
#FontPath "/usr/lib/X11/fonts/100dpi"
#FontPath "/usr/lib/X11/fonts/75dpi"
FontPath "unix/:7100"
FontPath "/usr/lib/X11/fonts/Speedo"
FontPath "/usr/share/fonts/X11/misc"
FontPath "/usr/lib/X11/fonts/100dpi/:unscaled"
FontPath "/usr/lib/X11/fonts/75dpi/:unscaled"
FontPath "/usr/share/fonts/X11/Type1"
FontPath "/usr/share/fonts/X11/CID"
FontPath "/usr/share/fonts/X11/100dpi"
FontPath "/usr/share/fonts/X11/75dpi"
EndSection

But in the log file (Xorg.0.log)

...
(--) Synaptics touchpad found
Could not init font path element unix/:7100, removing from list!
Could not init font path element /usr/share/fonts/X11/TTF/, removing from list!
Could not init font path element /usr/share/fonts/X11/OTF, removing from list!
Could not init font path element /usr/share/fonts/X11/CID/, removing from list!

I could find some problems with the font path ? The problem is that I don't know how to fix these, and are these related to my problem described above ?

Thank in advance, Jan

0

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Maybe Xorg?

Recently I had a similar problem (with FreeNX). The problem was caused by the transition in Debian from XFree to Xorg. After installing a newer version of FreeNX my problem was gone.

When searching on the internet you sometimes get the suggestion to remove the directory /usr/X11R6...

You could experiment whether removing that directory manually solves any of your problems. Of course you should rename that directory so you can restore it if necessary...

No guarantee!!!

Eeltje de Vries

Hi, Thanks for the quick

Hi,

Thanks for the quick reply.

In the meantime (after a few hours) I have found a 'solution' for the problem I encountered, so I can go on with the setup of the Maemo platform to test and create applications for the Nokia 770, a debian based Internet Tablet.

But, still I am not ready with my Debian system itself, during the last few hours I found that there are 3, yes three different directory locations where fonts are stored. Can I call this a real mess ?!

/usr/share/fonts/X11/
/usr/lib/X11/fonts/
/etc/X11/fonts/

It seems that most fonts are available in /usr/share/fonts/X11/, also the xorg.conf file is containing these fontpaths, ... but the applications Xephyr and also vnc where looking into /etc/X11/fonts/. How it exactly works I don't know. What I did was copying all the font information from /usr/share/fonts/X11/ towards the other directories, that fixes the problem for now.

BUT, I would like to know from a Debian expert, what is the correct way of handling fonts, what can I do to line up my system ?

Cheers, Jan

A comment on fonts

I am not an expert on fonts in Debian, but I can add some remarks to your observations.

1) /etc/X11/fonts does not contain fonts, but only information about fonts

2) /usr/share/fonts really contans fonts!

3) /usr/lib/X11/fonts is just a symbolic link to
/usr/X11R6/lib/X11/fonts

However, also this last directory contains just information about fonts, not real fonts.

I agree with you that it isn't simple. I wonder whether some of the confusion has to do with the transition from XFree to Xorg.
Eeltje de Vries

Solution

Hi,

I had the same problem then I got help from a more experienced Linux user (my colleague).
"fixed" is an alias to a font as you can see in /usr/lib/X11/fonts/misc/fonts.alias:

fixed -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-1

I did a search for ISO8859-1 fonts:
locate ISO8859-1.pcf

and it seemed that the font we need is located somewhere under /usr/share/fonts/X11. To set this fontpath to Xephyr use the -fp option (see Xephyr -help).

So if I add
-fp /usr/share/fonts/X11/misc
to the options of Xephyr it starts to work.

i need some help with my internet tablet

recently i purchased a blue tooth keyboard for my internet tablet assuming that it would work because my nokia 770 has bluetooth and i think i saw somrwhere that you could use a usb keyboard (wouldnt even know where to plug the usb from the keboard in) does any person know anything about drivers or anything for a bluetooth keyboard if any are needed or how to use a bluetooth keyboard on an internet tablet??? sorry if this has already been addressed or that its not in the right thread because this is all i could find in a search for internet tablet.
bye

(im very new to linux)

Re: could not open default font 'fixed'

Had the same problem after fresh install of Etch and xservert refused to start at all. It turned out that xfonts-base package and xfs packages were missing. I installed them both and it worked fine. Just thought this could help somebody.

Syndicate content