On Tue, 18 Dec 2007, Sven Joachim wrote:

There is apparently no command, but you can find out the default font
with the frame-parameters function.  The font is the last element of the
returned list, so you have to evaluate (last (frame-parameters)), which
on my system returns

Well, I tried M-x and C-h v with frame-parameters, no luck.

((font . "-Adobe-Courier-Medium-R-Normal--17-120-100-100-M-100-ISO8859-1"))
From xlsfonts:
-adobe-courier-medium-r-normal--17-120-100-100-m-100-iso10646-1
-adobe-courier-medium-r-normal--17-120-100-100-m-100-iso10646-1
-adobe-courier-medium-r-normal--17-120-100-100-m-100-iso10646-1
-adobe-courier-medium-r-normal--17-120-100-100-m-100-iso8859-1
-adobe-courier-medium-r-normal--17-120-100-100-m-100-iso8859-1
-adobe-courier-medium-r-normal--17-120-100-100-m-100-iso8859-1

Notice that "iso" is lowercase. The font strings in the emacs21-x binary aappear to be lower case also. xfontsel can find the font you describe.
Emacs is using at least three different fonts, that I can see:
  - Menubar & menu pulldown (working)
  - buffer text  (broken)
  - tooltips    (broken)
Changing the font in mule, fixes only the second one and only temporarily.

And you don't have something set in ~/.Xresources, I assume?

Neither root nor whitis has a .Xresources file.
dpkg --purge --force-depends xfonts-base
doesn't help

That would be very much _not_ recommended anyway.

Well, it was actually recommended on the debian wiki, surprisingly. I did reinstall xfonts-base after doing that, which they didn't suggest.
I restarted the font server and emacs in each state.


 FontPath in xorg.conf  includes /usr/share/fonts/X11/misc and
/usr/share/fonts/X11/Type1   - about three times each.

That is probably irrelevant - what you need are the courier fonts, which
are included in the xfonts-{75,100}dpi packages.

I mentioned those because they appeared in documentation related to font problems with emacs and/or with the transition to X11R7.


- Are these packages installed?



ii xfonts-100dpi 1:1.0.0-4 100 dpi fonts for X ii xfonts-75dpi 1:1.0.0-4 75 dpi fonts for X ii xfonts-base 1:1.0.0-5 standard fonts for X ii xfonts-encodings 1:1.0.2-3 Encodings for X.Org fonts ii xfonts-konsole 4:3.3.2-1sarge3 Fonts used by the KDE Konsole ii xfonts-scalable 1:1.0.0-6 scalable fonts for X ii xfonts-utils 1:1.0.1-2 X Window System font utility programs

- Are the /usr/share/fonts/X11/{75,100}dpi directories in your font path?

Section "Files"

                        # local font server
        # if the local font server has problems, we can fall back on these
    FontPath        "unix/:7100"
    FontPath        "/usr/share/fonts/X11/misc"
    FontPath        "/usr/share/fonts/X11/misc"
    FontPath        "/usr/share/fonts/X11/misc"
    FontPath        "/usr/lib/X11/fonts/misc"
    FontPath        "/usr/share/fonts/X11/cyrillic"
    FontPath        "/usr/share/fonts/X11/cyrillic"
    FontPath        "/usr/share/fonts/X11/cyrillic"
    FontPath        "/usr/lib/X11/fonts/cyrillic"
    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/Type1"
    FontPath        "/usr/share/fonts/X11/Type1"
    FontPath        "/usr/lib/X11/fonts/Type1"
    FontPath        "/usr/share/fonts/X11/CID"
    FontPath        "/usr/share/fonts/X11/CID"
    FontPath        "/usr/share/fonts/X11/CID"
    FontPath        "/usr/lib/X11/fonts/CID"
    FontPath        "/usr/lib/X11/fonts/Speedo"
    FontPath        "/usr/share/fonts/X11/100dpi"
    FontPath        "/usr/share/fonts/X11/100dpi"
    FontPath        "/usr/share/fonts/X11/100dpi"
    FontPath        "/usr/lib/X11/fonts/100dpi"
    FontPath        "/usr/share/fonts/X11/75dpi"
    FontPath        "/usr/share/fonts/X11/75dpi"
    FontPath        "/usr/share/fonts/X11/75dpi"
    FontPath        "/usr/lib/X11/fonts/75dpi"
EndSection




- Do you have entries for the courier fonts in the fonts.dir file in
 these directories (grep for ^cour there and post the output)?

 grep ^cour /usr/share/fonts/X11/100dpi/fonts.dir
courB08-ISO8859-1.pcf.gz -adobe-courier-bold-r-normal--11-80-100-100-m-60-iso8859-1
courB08.pcf.gz -adobe-courier-bold-r-normal--11-80-100-100-m-60-iso10646-1
courB10-ISO8859-1.pcf.gz -adobe-courier-bold-r-normal--14-100-100-100-m-90-iso8859-1 courB10.pcf.gz -adobe-courier-bold-r-normal--14-100-100-100-m-90-iso10646-1 courB12-ISO8859-1.pcf.gz -adobe-courier-bold-r-normal--17-120-100-100-m-100-iso8859-1 courB12.pcf.gz -adobe-courier-bold-r-normal--17-120-100-100-m-100-iso10646-1 courB14-ISO8859-1.pcf.gz -adobe-courier-bold-r-normal--20-140-100-100-m-110-iso8859-1 courB14.pcf.gz -adobe-courier-bold-r-normal--20-140-100-100-m-110-iso10646-1 courB18-ISO8859-1.pcf.gz -adobe-courier-bold-r-normal--25-180-100-100-m-150-iso8859-1 courB18.pcf.gz -adobe-courier-bold-r-normal--25-180-100-100-m-150-iso10646-1 courB24-ISO8859-1.pcf.gz -adobe-courier-bold-r-normal--34-240-100-100-m-200-iso8859-1 courB24.pcf.gz -adobe-courier-bold-r-normal--34-240-100-100-m-200-iso10646-1 courBO08-ISO8859-1.pcf.gz -adobe-courier-bold-o-normal--11-80-100-100-m-60-iso8859-1 courBO08.pcf.gz -adobe-courier-bold-o-normal--11-80-100-100-m-60-iso10646-1 courBO10-ISO8859-1.pcf.gz -adobe-courier-bold-o-normal--14-100-100-100-m-90-iso8859-1 courBO10.pcf.gz -adobe-courier-bold-o-normal--14-100-100-100-m-90-iso10646-1 courBO12-ISO8859-1.pcf.gz -adobe-courier-bold-o-normal--17-120-100-100-m-100-iso8859-1 courBO12.pcf.gz -adobe-courier-bold-o-normal--17-120-100-100-m-100-iso10646-1 courBO14-ISO8859-1.pcf.gz -adobe-courier-bold-o-normal--20-140-100-100-m-110-iso8859-1 courBO14.pcf.gz -adobe-courier-bold-o-normal--20-140-100-100-m-110-iso10646-1 courBO18-ISO8859-1.pcf.gz -adobe-courier-bold-o-normal--25-180-100-100-m-150-iso8859-1 courBO18.pcf.gz -adobe-courier-bold-o-normal--25-180-100-100-m-150-iso10646-1 courBO24-ISO8859-1.pcf.gz -adobe-courier-bold-o-normal--34-240-100-100-m-200-iso8859-1 courBO24.pcf.gz -adobe-courier-bold-o-normal--34-240-100-100-m-200-iso10646-1 courO08-ISO8859-1.pcf.gz -adobe-courier-medium-o-normal--11-80-100-100-m-60-iso8859-1 courO08.pcf.gz -adobe-courier-medium-o-normal--11-80-100-100-m-60-iso10646-1 courO10-ISO8859-1.pcf.gz -adobe-courier-medium-o-normal--14-100-100-100-m-90-iso8859-1 courO10.pcf.gz -adobe-courier-medium-o-normal--14-100-100-100-m-90-iso10646-1 courO12-ISO8859-1.pcf.gz -adobe-courier-medium-o-normal--17-120-100-100-m-100-iso8859-1 courO12.pcf.gz -adobe-courier-medium-o-normal--17-120-100-100-m-100-iso10646-1 courO14-ISO8859-1.pcf.gz -adobe-courier-medium-o-normal--20-140-100-100-m-110-iso8859-1 courO14.pcf.gz -adobe-courier-medium-o-normal--20-140-100-100-m-110-iso10646-1 courO18-ISO8859-1.pcf.gz -adobe-courier-medium-o-normal--25-180-100-100-m-150-iso8859-1 courO18.pcf.gz -adobe-courier-medium-o-normal--25-180-100-100-m-150-iso10646-1 courO24-ISO8859-1.pcf.gz -adobe-courier-medium-o-normal--34-240-100-100-m-200-iso8859-1 courO24.pcf.gz -adobe-courier-medium-o-normal--34-240-100-100-m-200-iso10646-1 courR08-ISO8859-1.pcf.gz -adobe-courier-medium-r-normal--11-80-100-100-m-60-iso8859-1 courR08.pcf.gz -adobe-courier-medium-r-normal--11-80-100-100-m-60-iso10646-1 courR10-ISO8859-1.pcf.gz -adobe-courier-medium-r-normal--14-100-100-100-m-90-iso8859-1 courR10.pcf.gz -adobe-courier-medium-r-normal--14-100-100-100-m-90-iso10646-1 courR12-ISO8859-1.pcf.gz -adobe-courier-medium-r-normal--17-120-100-100-m-100-iso8859-1 courR12.pcf.gz -adobe-courier-medium-r-normal--17-120-100-100-m-100-iso10646-1 courR14-ISO8859-1.pcf.gz -adobe-courier-medium-r-normal--20-140-100-100-m-110-iso8859-1 courR14.pcf.gz -adobe-courier-medium-r-normal--20-140-100-100-m-110-iso10646-1 courR18-ISO8859-1.pcf.gz -adobe-courier-medium-r-normal--25-180-100-100-m-150-iso8859-1 courR18.pcf.gz -adobe-courier-medium-r-normal--25-180-100-100-m-150-iso10646-1 courR24-ISO8859-1.pcf.gz -adobe-courier-medium-r-normal--34-240-100-100-m-200-iso8859-1 courR24.pcf.gz -adobe-courier-medium-r-normal--34-240-100-100-m-200-iso10646-1


xfs is not running:
rc  xfs            4.3.0.dfsg.1-1 X font server

apt-get install xfs xfonts-base
/etc/init.d/xfs start

still broken.

xfs is running now, but xfsinfosays "xfsinfo: no font server defined"
and xfsinfo -server localhost:7100 doesn't work, either.  But
X.org does have the regular font paths to search as well.



Tried C-u C-x =  on a invisable character then switching to a a
readable font:
  character: C (0103, 67, 0x43)
    charset: ascii (ASCII (ISO646 IRV))
 code point: 67
     syntax: word
   category: a:ASCII   l:Latin
buffer code: 0x43
  file code: 0x43 (encoded by coding system undecided-dos)
       font: -- none --

That's bad, in a working Emacs the font's name would be displayed.

yep.   It is displayed when I have set the font with mule.


Looking at *Messages* buffer after switching to a readable font had
some error messages about nimbus-mono fonts.  System -> apearance ->
fonts ->
details -> go to fonts folder shows Nimbus Mono L, nimbus mono l bold,
nimbus mono l bold oblique, nimbus mono l oblique are all present and
the system fixed width font is monospace 10.   xlsfonts says there are
lots of nimbus mono's, but they all have "0" instead of "16" in the
first numeric field.    So this could be a fixed font vs resizable
font issue.
-urw-nimbus mono l-regular-r-normal--16-125-99-99-p-0-iso8859-1
vs:
-urw-nimbus mono l-regular-o-normal--0-0-0-0-p-0-iso8859-1

I wonder why Emacs bothers about these fonts.  Can you try to remove the
package(s) that contain them, whatever they may be
("apt-cache search nimbus" gives no result on my system, so I don't know)?

apt-cache search nimbus
  no results
find /usr/share/fonts -iname '*nimbus*' -print
  (no results)
find /usr/lib/X11/ -iname '*nimbus*' -print
  (no results)
these fonts are listed in /usr/share/fonts/X11/Type1/fonts.*
 dpkg --search n022004l.pfb

gsfonts-x11: /usr/share/fonts/X11/Type1/n022004l.pfb

So, probably not a good idea to get rid of a ghostscript font. So, I did the opposite, apt-get install gsfonts gsfonts-x11
still broken.

Actually, removing those packages looks like a real mess:
78 upgraded, 55 newly installed, 56 to remove and 1472 not upgraded.




--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to