Emacs doesn't redraw screen after resizing font

Hi, I am using xmonad 0.8 and Gnu Emacs 23.0.60 with the xft font backend. I set the font height of the default face to 10pt in my .emacs but now when I open the application layout is messed up -- I've attached a screenshot. This doesn't happen under GNOME. I can force the screen tro be redrawn by cycling layouts, typing M-SPC until I get back to the original. In emacs, M-x redraw-display does nothing. It seems that emacs opens with the larger default font then resizes it, so I thought if I could set font height in ~/.Xresources it might be in effect before emacs starts, but putting this in my .Xresources has no effect: Emacs.default.attributeHeight:100 I suppose the answer will probably be in emacs not xmonad, so I hope you don't think it's OT. I've asked on a few emacs lists and can't solve it...thanks. Jim

I had the same problem and solved it by putting: Emacs*Font: Monospace-15 in .Xdefaults, and not bothering with a font tweak in .emacs. I seem to recall that putting the same in .Xresources didn't cut it. --Tracy

At Wed, 11 Mar 2009 08:20:53 -0400, Tracy Wadleigh wrote:
[1
] [2
] I had the same problem and solved it by putting: Emacs*Font: Monospace-15
Thanks! I can't believe I didn't try that. I thought that setting the font directly would lose the fontset/family behaviour, picking different fonts for unicode etc., but I see that it doesn't. Jim
in .Xdefaults, and not bothering with a font tweak in .emacs.
I seem to recall that putting the same in .Xresources didn't cut it.
--Tracy

On 2009 Mar 11, at 8:04, Jim Burton wrote:
Hi, I am using xmonad 0.8 and Gnu Emacs 23.0.60 with the xft font backend. I set the font height of the default face to 10pt in my .emacs but now when I open the application layout is messed up -- I've attached a screenshot. This doesn't happen under GNOME. I can force the screen tro be redrawn by cycling layouts, typing M-SPC until I get back to the original. In emacs, M-x redraw-display does nothing.
My personal experience with both emacs and xemacs is that programmatic font changes before the window is realized cause confusion. (And not just in xmonad; a font change in xemacs 22 caused xemacs to open at normal size and then incrementally resize itself down to a postage stamp, in KDE.) Suffice it to say that fonts and {,x}emacs don't really play all that well together. -- brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery@kf8nh.com system administrator [openafs,heimdal,too many hats] allbery@ece.cmu.edu electrical and computer engineering, carnegie mellon university KF8NH
participants (3)
-
Brandon S. Allbery KF8NH
-
Jim Burton
-
Tracy Wadleigh