emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: recent emacs font problems?


From: John Paul Wallington
Subject: Re: recent emacs font problems?
Date: Wed, 28 May 2003 06:14:48 +0100

> > Has anyone noticed problems recently with changing emacs'
> > default font?  I find that I can change the default font
> > emacs uses with the `-font' option, but changing from
> > within emacs (either via `set-default-font' or the
> > S-mouse-1 menu) has no effect -- or rather, emacs
> > continues to _display_ characters using the old font, but
> > apparently changes the default character cell size to use
> > the new font (e.g., the tab-width gets changed, and the
> > window gets resized -- since the characters are still
> > displayed in the old font, this means that both tabs and
> > window-size calculations are now wrong)!
> 
> > I use the GTK toolkit.
> 
> I can reproduce that bug without GTK toolkit too.

Same here (without GTK too).

Is this the right fix (not properly tested) ?

--- /build/emacs/src/xfaces.c.~1.277.~  Wed May 28 06:00:50 2003
+++ /build/emacs/src/xfaces.c   Wed May 28 06:10:40 2003
@@ -6584,9 +6584,7 @@
       frame_font = Fassq (Qfont, f->param_alist);
       xassert (CONSP (frame_font) && STRINGP (XCDR (frame_font)));
       frame_font = XCDR (frame_font);
-      /* Specify 0 for FORCE_P here, so that we don't override
-        a :family attribute specified for `default' for new frames.  */
-      set_lface_from_font_name (f, lface, frame_font, 0, 1);
+      set_lface_from_font_name (f, lface, frame_font, 1, 1);
     }
 #endif /* HAVE_WINDOW_SYSTEM */




reply via email to

[Prev in Thread] Current Thread [Next in Thread]