On 2007-12-18 19:06 +0100, Mark Whitis wrote:
> debian unstable, fairly up to date
>
> I rebooted the system and now I am seeing this problem.
> - Buffer content displayed as misssing character boxes
> - Menu bar displays correctly
> - Status bar and mini-buffer are broken
> - tooltips on the toolbar are broken
> - pulldown menus are working but the tooltips are broken.
> - options -> mule -> display character sets displays in a normabl
> buffer and then is broken.
> Faily obvious that the fixed width font is broken.
>
> This may be a problem elsewhere in the system but a lot of emacs bugs
> are contributing to make it worse.
> - Emacs does not display any error messages on stdout when it fails
> to load the font. Maybe it displays them in the minibuffer where
> they are unreadable because they depend on the very font which is
> broken.
>
> - Emacs doesn't tell you what font it is currently using so you can
> investigate why it is missing.
>
> - there is a set-default-font command but no show-default-font command.
> There don't seem to be any emacs commands that I can use to show what
> font it is using so I can't try running that command then switching the
> font so I can read what it says.
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
((font . "-Adobe-Courier-Medium-R-Normal--17-120-100-100-M-100-ISO8859-1"))
That's Courier 12, the standard font under X in Emacs 21 and 22.
> Options -> mule -> set font/fontset -> fontset -> default seems
> to be the font that is broken but default doesn't tell us what it is
> known by on the rest of the system.
>
> No font is set in ~/.emacs and custom-set faces is empty.
And you don't have something set in ~/.Xresources, I assume?
> Using mule to set the font to 9x15 is a temporary workaround. It is
> temporary and you have to do it everytime you start emacs and it
> doesn't fix the tooltips. Fortunately, mule doesn't segfault as it
> does for others (and I have had that problem in the past, myself).
>
> the command
> strings /usr/bin/emacs21-x | fgrep -- "-*-"
> returns a bunch of font names, including this suspicious looking one:
> -*-*-*-*-*-*-*-*-*-*-*-*-fontset-default
> xlsfonts | fgrep -i default
> returns nothing
>
> dpkg --purge --force-depends xfonts-base
> doesn't help
That would be very much _not_ recommended anyway.
> 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.
- Are these packages installed?
- Are the /usr/share/fonts/X11/{75,100}dpi directories in your font path?
- Do you have entries for the courier fonts in the fonts.dir file in
these directories (grep for ^cour there and post the output)?
> 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.
>
> 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.
> 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)?
Regards,
Sven
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]