(x_set_font): Call set_default_ascii_font if an
authorKenichi Handa <handa@m17n.org>
Tue, 8 Mar 2005 08:46:48 +0000 (08:46 +0000)
committerKenichi Handa <handa@m17n.org>
Tue, 8 Mar 2005 08:46:48 +0000 (08:46 +0000)
available font is found.

src/ChangeLog
src/frame.c

index 854a867..d9a2d3e 100644 (file)
@@ -1,3 +1,14 @@
+2005-03-08  Kenichi Handa  <handa@m17n.org>
+
+       * frame.c (x_set_font): Call set_default_ascii_font if an
+       available font is found.
+
+       * fontset.c (set_default_ascii_font): New function.
+       (syms_of_fontset): Don't set FONTSET_ASCII (Vdefault_fontset)
+       here.
+
+       * fontset.h (set_default_ascii_font): Extern it.
+
 2005-03-07  Kim F. Storm  <storm@cua.dk>
 
        * xdisp.c (CLEAR_IMAGE_CACHE_COUNT): New const.
index 36014df..2dc8e63 100644 (file)
@@ -3084,6 +3084,7 @@ x_set_font (f, arg, oldval)
     error ("The characters of the given font have varying widths");
   else if (STRINGP (result))
     {
+      set_default_ascii_font (result);
       if (STRINGP (fontset_name))
        {
          /* Fontset names are built from ASCII font names, so the