[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 23.0.60; new frames ignore set-default-font
From: |
Tim Van Holder |
Subject: |
Re: 23.0.60; new frames ignore set-default-font |
Date: |
Fri, 9 May 2008 12:23:15 +0200 |
Jason Rumney wrote:
>
> Jim Hunziker wrote:
> > I am using the Xft font backend and Emacs from CVS. I am using the
> > Andale Mono-13 font from msttcorefonts.
> >
> > When using the setting (set-default-font "Andale Mono-13") in my
> > .emacs file, new frames created with M-x 5 2 don't use the default
> > font. (The initial frame does use the font.)
>
> I think this is by design. set-default-font is an alias for set-frame-font,
> and it only sets the default font for the current frame.
> To set the font for future frames, you need to set the font frame-parameter
> in default-frame-alist.
As I reported on March 7th
(http://lists.gnu.org/archive/html/emacs-devel/2008-03/msg00675.html),
this also affects cases where the default face has been customized (at
least it does for me); and as I understand it, the default face is
supposed to apply to new frames too.
100% reproduction for me with:
$ emacs -Q
M-x customize-face default
-> font-family starts out set to 'adobe-courier'
-> change it to 'terminus' (or some other font, like 'fixed')
-> set for current session (frame repaints with the new font)
M-x make-frame
-> get new frame, with adobe-courier
-> a fresh M-x customize-face default shows the font and size as
adobe-courier/116 (NOT the customized values), but the state as "SET
for current session"
-> Changing the font & size again (or "Reset to saved" for a non -Q
run of emacs) repaints all frames with the correct customized font,
but every subsequent make-frame keeps creating one with courier
This is with a freshly built emacs from CVS (regular rebuild, not full
bootstrap).