]> git.eshelyaron.com Git - emacs.git/commitdiff
* xfaces.c (Finternal_set_lisp_face_attribute): Don't try to
authorJan Djärv <jan.h.d@swipnet.se>
Wed, 1 Oct 2014 17:41:18 +0000 (19:41 +0200)
committerJan Djärv <jan.h.d@swipnet.se>
Wed, 1 Oct 2014 17:41:18 +0000 (19:41 +0200)
make a font_object from a tty frame.

Fixes: debbugs:18573
src/ChangeLog
src/xfaces.c

index fdc30da96b6458fde284f42c8549f357f1df7258..63fcf1305429284bf426c307612c582171c841aa 100644 (file)
@@ -1,3 +1,8 @@
+2014-10-01  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * xfaces.c (Finternal_set_lisp_face_attribute): Don't try to
+       make a font_object from a tty frame (Bug#18573).
+
 2014-09-30  Eli Zaretskii  <eliz@gnu.org>
 
        * w32fns.c (w32_createwindow): Accept an additional argument, an
index ac67c7b7be434f3a74e06cff24272fee1654deb4..5d158f08099b82892ca4ca5acd1e6aa68b4be26a 100644 (file)
@@ -3119,17 +3119,20 @@ FRAME 0 means change the face on all frames, and change the default
                f = XFRAME (selected_frame);
              else
                f = XFRAME (frame);
-             if (! FONT_OBJECT_P (value))
-               {
-                 Lisp_Object *attrs = XVECTOR (lface)->contents;
-                 Lisp_Object font_object;
-
-                 font_object = font_load_for_lface (f, attrs, value);
-                 if (NILP (font_object))
-                   signal_error ("Font not available", value);
-                 value = font_object;
-               }
-             set_lface_from_font (f, lface, value, 1);
+              if (f->terminal->type != output_termcap)
+                {
+                  if (! FONT_OBJECT_P (value))
+                    {
+                      Lisp_Object *attrs = XVECTOR (lface)->contents;
+                      Lisp_Object font_object;
+
+                      font_object = font_load_for_lface (f, attrs, value);
+                      if (NILP (font_object))
+                        signal_error ("Font not available", value);
+                      value = font_object;
+                    }
+                  set_lface_from_font (f, lface, value, 1);
+                }
            }
          else
            ASET (lface, LFACE_FONT_INDEX, value);