Discussion:
Bug#366948: xfig can't find fonts
Bruce MacDonald
2006-05-13 03:59:14 UTC
Permalink
My x11-common 1:7.0.18 (the most recent in unstable). Bruce
/usr/share/fonts/X11/misc,/usr/share/fonts/X11/100dpi/:unscaled,/usr/share/fonts/X11/75dpi/:unscaled,/usr/share/fonts/X11/Type1,/usr/share/fonts/X11/100dpi,/usr/share/fonts/X11/75dpi,/usr/share/fonts/X11/misc/,/usr/share/fonts/X11/Type1/,/usr/share/fonts/X11/100dpi/,/usr/share/fonts/X11/75dpi/
What version of x11-common do you have installed?
Cheers,
--
Steve Langasek Give me a lever long enough and a Free OS
Debian Developer to set it on, and I can move the world.
Steve Langasek
2006-05-13 06:04:31 UTC
Permalink
Post by Bruce MacDonald
My x11-common 1:7.0.18 (the most recent in unstable). Bruce
Ok. Can you also do a grep FontPath /etc/X11/xorg.conf then please?

If this command returns more font paths than xset q did, could you try
restarting your X server to see if it corrects this problem?
--
Steve Langasek Give me a lever long enough and a Free OS
Debian Developer to set it on, and I can move the world.
***@debian.org http://www.debian.org/
Bruce MacDonald
2006-05-13 07:03:24 UTC
Permalink
The font paths in xorg.conf are:

$ grep FontPath /etc/X11/xorg.conf
FontPath "/usr/share/fonts/X11/misc"
FontPath "/usr/share/fonts/X11/cyrillic"
FontPath "/usr/share/fonts/X11/100dpi/:unscaled"
FontPath "/usr/share/fonts/X11/75dpi/:unscaled"
FontPath "/usr/share/fonts/X11/Type1"
FontPath "/usr/share/fonts/X11/100dpi"
FontPath "/usr/share/fonts/X11/75dpi"
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"

so there are more font paths than xset q gives. Restarting X didn't
solve the problem, but now I look in /var/log/Xorg.0.log the cyrillic
path is not found

(WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
Entry deleted from font path.
(**) FontPath set to "/usr/share/fonts/X11/misc,/usr/share/fonts/X11/100dpi/:unscaled,/usr/sh
are/fonts/X11/75dpi/:unscaled,/usr/share/fonts/X11/Type1,/usr/share/fonts/X11/100dpi,/usr/sha
re/fonts/X11/75dpi,/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType,/usr/share/fonts/X11/misc
/,/usr/share/fonts/X11/TTF/,/usr/share/fonts/X11/OTF,/usr/share/fonts/X11/Type1/,/usr/share/f
onts/X11/CID/,/usr/share/fonts/X11/100dpi/,/usr/share/fonts/X11/75dpi/"

but there are these messages near the end of the log file:

Could not init font path element /var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType, 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!

The latter three don't exist but the first does. But its font.dir is
empty so I recreated it with mkfontdir and font.scale with mkfontscale
and now that path is not rejected by X and so xset q gives:

Font Path:
/usr/share/fonts/X11/misc,/usr/share/fonts/X11/100dpi/:unscaled,/usr/share/fonts/X11/75dpi/:unscaled,/usr/share/fonts/X11/Type1,/usr/share/fonts/X11/100dpi,/usr/share/fonts/X11/75dpi,/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType,/usr/share/fonts/X11/misc/,/usr/share/fonts/X11/Type1/,/usr/share/fonts/X11/100dpi/,/usr/share/fonts/X11/75dpi/

And xfontsel shows more fonts

But the xfig problem remains. Also I noticed that xfontsel shows that
the font needed is missing because the size 13 is not available, eg in

-*-times-medium-r-normal--13-*-*-*-*-*-ISO8859-*

Size 12 is available. I'm no expert here but will try to track down
the font issues.

Bruce
Post by Steve Langasek
Post by Bruce MacDonald
My x11-common 1:7.0.18 (the most recent in unstable). Bruce
Ok. Can you also do a grep FontPath /etc/X11/xorg.conf then please?
If this command returns more font paths than xset q did, could you try
restarting your X server to see if it corrects this problem?
--
Steve Langasek Give me a lever long enough and a Free OS
Debian Developer to set it on, and I can move the world.
Steve Langasek
2006-05-13 20:19:14 UTC
Permalink
Post by Bruce MacDonald
$ grep FontPath /etc/X11/xorg.conf
FontPath "/usr/share/fonts/X11/misc"
FontPath "/usr/share/fonts/X11/cyrillic"
FontPath "/usr/share/fonts/X11/100dpi/:unscaled"
FontPath "/usr/share/fonts/X11/75dpi/:unscaled"
FontPath "/usr/share/fonts/X11/Type1"
FontPath "/usr/share/fonts/X11/100dpi"
FontPath "/usr/share/fonts/X11/75dpi"
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
so there are more font paths than xset q gives.
But not the ones I was specifically hoping to find there. Did you edit your
xorg.conf by hand for the X11R7 upgrade? I was looking to see whether you
still had /usr/X11R6/lib/X11/fonts/ directories listed here, because the
current automated upgrade path from xorg 6.9 to 7 should keep both these and
the new /usr/share/fonts/X11 paths for transitional purposes.

Of course, it may not matter in this case; it depends on whether font
packages are still installing to the legacy path.
Post by Bruce MacDonald
But the xfig problem remains. Also I noticed that xfontsel shows that
the font needed is missing because the size 13 is not available, eg in
-*-times-medium-r-normal--13-*-*-*-*-*-ISO8859-*
Size 12 is available. I'm no expert here but will try to track down
the font issues.
Ok, good luck... :)
--
Steve Langasek Give me a lever long enough and a Free OS
Debian Developer to set it on, and I can move the world.
***@debian.org http://www.debian.org/
Bruce MacDonald
2006-05-14 23:22:58 UTC
Permalink
Steve, I forgot to copy this to Roland and bugs. Bruce
Post by Steve Langasek
Post by Bruce MacDonald
$ grep FontPath /etc/X11/xorg.conf
FontPath "/usr/share/fonts/X11/misc"
FontPath "/usr/share/fonts/X11/cyrillic"
FontPath "/usr/share/fonts/X11/100dpi/:unscaled"
FontPath "/usr/share/fonts/X11/75dpi/:unscaled"
FontPath "/usr/share/fonts/X11/Type1"
FontPath "/usr/share/fonts/X11/100dpi"
FontPath "/usr/share/fonts/X11/75dpi"
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
so there are more font paths than xset q gives.
But not the ones I was specifically hoping to find there. Did you edit your
xorg.conf by hand for the X11R7 upgrade? I was looking to see whether you
still had /usr/X11R6/lib/X11/fonts/ directories listed here, because the
current automated upgrade path from xorg 6.9 to 7 should keep both these and
the new /usr/share/fonts/X11 paths for transitional purposes.
No I dropped my previous version and went with the new xorg.conf.
Post by Steve Langasek
Of course, it may not matter in this case; it depends on whether font
packages are still installing to the legacy path.
There are a few fonts in /usr/X11R6/lib/X11/fonts/misc but I think those are
just one font from nethack-x11, two fonts from xfonts-konsole. There
are files left from elsewhere but they are duplicated in
/usr/share/fonts/X11/misc. But that doesn't seem relevant to xfig.

Thanks,
Bruce
Bruce MacDonald
2006-05-16 04:43:07 UTC
Permalink
I found out some more about this problem and have worked around it as
a result. It seems related to gsfonts-x11, which seems to have some
reports about similar problems. The problem I had with xfig not
finding fonts goes away if I delete the alias lines in

/usr/share/fonts/X11/Type1/fonts.alias

that have aliases for the fonts that xfig can't find (eg all the adobe
ones, but also others). The aliases are to gsfonts fonts I guess are
created from /etc/X11/fonts/Type1/gsfonts-x11.alias. There is probably
a better way to do this without removing gsfonts-x11.

What I found was that the scalable version of the fonts such as adobe
times could not be accessed (eg by xfd) and I think that is why xfig
was unhappy about it. Something about the aliasing? Once the alias
lines were removed, then xfd and xfig are happy with times fonts (and
others) at sizes not specifically installed. Found this by comparing
fonts.* files across machines. I ended up removing all the alias lines
from the file above, except the urw to urw ones. xfig still does not
have these fonts:

-*-helvetica-medium-o-narrow--13-*-*-*-*-*-ISO8859-*
-*-helvetica-bold-o-narrow--13-*-*-*-*-*-ISO8859-*
-*-helvetica-medium-r-narrow--13-*-*-*-*-*-ISO8859-*
-*-helvetica-bold-r-narrow--13-*-*-*-*-*-ISO8859-*
-*-itc zapf chancery-medium-i-normal--13-*-*-*-*-*-ISO8859-*
-*-itc zapf dingbats-*-*-*--13-*-*-*-*-*-*-*

I think because I don't have these fonts; where to get them from? They
aren't that important anyway.

Shall I cross report this to gsfonts-x11 or leave that to Roland?

Bruce

Loading...