Messed up fonts in emacs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
emacs21 (Ubuntu) |
Undecided
|
Unassigned | |||
xorg (Ubuntu) |
Undecided
|
Unassigned |
Bug Description
On a fresh edgy install, emacs font rendering is messed up. I'll attach a screen shot. The wierd part is that on first boot, emacs worked properly. But after I rebooted(for the kernel) it was as shown in the screen shot. It makes emacs unusable. Moving customizations out of the way has no effect.
Scott Henson (scotth) wrote : | #1 |
Scott Henson (scotth) wrote : | #2 |
I can confirm this, it also happens for me on a machine upgraded from Dapper. It also happens with the emacs-snapshot package.
The emacs fonts were fine in Dapper.
Changed in emacs21: | |
status: | Unconfirmed → Confirmed |
Dave Love (fx-gnu) wrote : | #4 |
It's failing to find the font for the default face. On
Dapper, this appears to be
-Adobe-
by default.
(This is actually a poor default. misc-fixed would be
better since it has a decent iso10646-1 repertoire.)
Scott Henson (scotth) wrote : | #5 |
I meant to come back and comment on this. Its due to the font paths in edgy being different from those in dapper. In dapper the fonts are in /usr/share/
Oh, and the reason emacs is affected and the rest of gnome isn't is because gnome uses xft. I can't wait for emacs 22 with xft support.
Yes, changing my xorg.conf to use the FontPath lines below fixes the problem for me.
FontPath "unix/:7100"
FontPath "/usr/share/
FontPath "/usr/share/
FontPath "/usr/share/
FontPath "/usr/share/
FontPath "/usr/share/
FontPath "/usr/share/
FontPath "/usr/share/
FontPath "/usr/share/
FontPath "/var/lib/
FontPath "/var/lib/
Attempt to change package, emacs21 -> xorg.
PaulSchulz (paulschulz) wrote : | #8 |
I believe that the latest edgy update fixes this problem. I had it, but it now has seemed to have gone away.
Dave Love (fx-gnu) wrote : | #9 |
I'd forgotten commenting on this before I submitted
#64003. That was from a fairly recent upgrade to edgy.
I don't see any relevant fixes, and the related bugs are
still open (surprisingly, since this seems relatively
serious). Can you identify a specific change which fixes
it?
PaulSchulz (paulschulz) wrote : | #10 |
I don't know if the following helps or not, but the following is the diff of my xorg.conf.
- An old one: xorg.conf.
- Today: xorg.conf
Where the font path has changed for 'misc' fonts only.
PaulSchulz (paulschulz) wrote : | #11 |
The following diff is from the more recent upgrade in edgy.
- Previous: xorg.conf.
- Today: xorg.conf
No relevent configuration file changes, as far as I can see, but it might give you an idea of what changed in the upgrade.
In both of these cases, I have taken the default, and auto-detection options from 'dpkg-reconfigure'.
Luca Ferretti (elle.uca) wrote : | #12 |
IMHO the bug is still here. I've changed mu xorg.conf file to use the right directory (/usr/share/
#### start console log ####
$ sudo dpkg-reconfigure -phigh xserver-xorg
xserver-xorg postinst warning: overwriting possibly-customised configuration
file; backup in /etc/X11/
$ diff -Naur /etc/X11/
--- /etc/X11/
+++ /etc/X11/xorg.conf 2006-10-16 12:38:39.000000000 +0200
@@ -15,13 +15,14 @@
# sudo dpkg-reconfigure -phigh xserver-xorg
Section "Files"
+ FontPath "/usr/share/
+ FontPath "/usr/share/
+ FontPath "/usr/share/
+ FontPath "/usr/share/
+ FontPath "/usr/share/
+ FontPath "/usr/share/
+ FontPath "/usr/share/
FontPath "/usr/share/
- FontPath "/usr/share/
- FontPath "/usr/share/
- FontPath "/usr/share/
- FontPath "/usr/share/
- FontPath "/usr/share/
- FontPath "/usr/share/
# path to defoma fonts
FontPath "/var/lib/
$ ls /usr/share/
encodings.dir fonts.alias fonts.cache-1 fonts.dir
#### end console log ####
So, currently:
1. font files are installed in /usr/share/
2. the dpkg-reconfigure command (it should recreate xorg.conf file as in a fresh install, removing all manual customizations, isn't it?) sets FontPaths to non working directories (no font files in /usr/share/
I supplied a fix under #63408 (which has this one marked as a
duplicate) and gave it a better title. I hope a maintainer
will now fix it.
The xorg.conf at http://
An EndSection is in the wrong place.
Brian Murray (brian-murray) wrote : | #18 |
The xorg.conf at http://
An EndSection is in the wrong place.
Brian Murray (brian-murray) wrote : | #19 |
The xorg.conf at http://
An EndSection is in the wrong place.
Brian Murray (brian-murray) wrote : | #20 |
The xorg.conf at http://
An EndSection is in the wrong place.
First Screen shot with the first screen.