diff src/font.c @ 96073:4af4f5a1eb34

(Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM. (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
author Andreas Schwab <schwab@suse.de>
date Wed, 18 Jun 2008 14:45:11 +0000
parents 380525b11593
children 86e3f462b0c2
line wrap: on
line diff
--- a/src/font.c	Wed Jun 18 11:01:51 2008 +0000
+++ b/src/font.c	Wed Jun 18 14:45:11 2008 +0000
@@ -3742,6 +3742,8 @@
   return Fcdr (Fassq (key, AREF (font, FONT_EXTRA_INDEX)));
 }
 
+#ifdef HAVE_WINDOW_SYSTEM
+
 DEFUN ("font-face-attributes", Ffont_face_attributes, Sfont_face_attributes, 1, 2, 0,
        doc: /* Return a plist of face attributes generated by FONT.
 FONT is a font name, a font-spec, a font-entity, or a font-object.
@@ -3811,6 +3813,8 @@
   return Flist (10, plist);
 }
 
+#endif
+
 DEFUN ("font-put", Ffont_put, Sfont_put, 3, 3, 0,
        doc: /* Set one property of FONT-SPEC: give property PROP value VAL.  */)
      (font_spec, prop, val)
@@ -4852,7 +4856,9 @@
   defsubr (&Sfontp);
   defsubr (&Sfont_spec);
   defsubr (&Sfont_get);
+#ifdef HAVE_WINDOW_SYSTEM
   defsubr (&Sfont_face_attributes);
+#endif
   defsubr (&Sfont_put);
   defsubr (&Slist_fonts);
   defsubr (&Sfont_family_list);