[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: recent emacs font problems?
From: |
Jan D. |
Subject: |
Re: recent emacs font problems? |
Date: |
Mon, 09 Jun 2003 14:06:39 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030529 |
Hello.
I found out why changing font isn't working. This change did it:
@@ -6603,7 +6604,9 @@
frame_font = Fassq (Qfont, f->param_alist);
xassert (CONSP (frame_font) && STRINGP (XCDR (frame_font)));
frame_font = XCDR (frame_font);
- set_lface_from_font_name (f, lface, frame_font, 1, 1);
+ /* 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);
}
#endif /* HAVE_WINDOW_SYSTEM */
2003-05-19 Richard M. Stallman <address@hidden>
* xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
as value for QCfont attribute.
(realize_default_face): lface should already exist; crash if not.
Specify 0 for FORCE_P when calling set_lface_from_font_name.
The problem is that if FORCE_P is 0, all other attributes of the font won't be
set unless they are unspecified in the default face. For exampel size. So if
you have a default face font which is fully specified (no undefined parts) no
font change will happen.
I cant really grasp the problem that lead to this change from the comment
above, so if anyone can describe a case for the original problem, I can try and
make this work.
Jan D.
- Re: recent emacs font problems?,
Jan D. <=
Re: recent emacs font problems?, Richard Stallman, 2003/06/10
Re: recent emacs font problems?, Richard Stallman, 2003/06/15