Red Hat Bugzilla – Bug 548390
Bad default font in Emacs
Last modified: 2009-12-18 03:05:34 EST
Created attachment 378955 [details]
Screenshot of an emacs window
Description of problem:
Emacs has suddenly started using a very strange font as the default font. See the attached screenshot.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Start emacs
2. See the wrong font being used.
A weird font is used.
A suitable font should be used. Like the one used before this bug appeared.
I have tried removing and reinstalling emacs, but that doesn't help.
I have tried deleting my ~/.emacs file, but that doesn't help either.
I have tried removing and recreating the fontconfig cache files in /var/cache/fontconfig, also doesn't help.
Mattias, the situation you described cannot be reproduced without knowing what triggered the change of the font. Was it caused by an update? Did you install a new package, added fonts manually, or changed some configuration?
(In reply to comment #1)
> Mattias, the situation you described cannot be reproduced without knowing what
> triggered the change of the font. Was it caused by an update? Did you install a
> new package, added fonts manually, or changed some configuration?
I have not changed any defaults in the emacs configuration except for checking the "Do not show this start-up screen" check-box to get rid of the extremely annoying start-up screen.
I have not installed any fonts on the computer that is not packaged by Fedora.
I did install the emacs-23.1-13 update on 2009-12-07, and the freetype-2.3.11-3 and fontconfig-2.8.0-1 updates 2009-12-11. The problems started around that time.
I made a little investigation:
Running "yum downgrade fontconfig fontconfig-devel" so that I get the previous fontconfig-2.7.3-1 version restores the correct default font in emacs.
If I run "yum update" again after this and get the current fontconfig-2.8.0-1 again the problem with the wrong default font in emacs comes back again.
So the problem is triggered by the fontconfig update.
Thank you for the investigation.
It seems fontconfig people are already looking into the problem, so I am closing this as a duplicate of their bug.
*** This bug has been marked as a duplicate of bug 546490 ***