Commit a266686a authored by Kenichi Handa's avatar Kenichi Handa
Browse files

(Ffont_info): Define only if HAVE_WINDOW_SYSTEM is

defined.
(syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
defined.
parent 30235d57
2008-05-30 Kenichi Handa <handa@m17n.org>
* font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is
defined.
(syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
defined.
2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
* data.c (Fmake_variable_buffer_local, Fmake_local_variable)
......
......@@ -4349,6 +4349,8 @@ Type C-l to recover what previously shown. */)
#endif /* FONT_DEBUG */
#ifdef HAVE_WINDOW_SYSTEM
DEFUN ("font-info", Ffont_info, Sfont_info, 1, 2, 0,
doc: /* Return information about a font named NAME on frame FRAME.
If FRAME is omitted or nil, use the selected frame.
......@@ -4420,6 +4422,7 @@ If the named font is not yet loaded, return nil. */)
#endif
return info;
}
#endif
#define BUILD_STYLE_TABLE(TBL) \
......@@ -4591,7 +4594,9 @@ syms_of_font ()
defsubr (&Sdraw_string);
#endif
#endif /* FONT_DEBUG */
#ifdef HAVE_WINDOW_SYSTEM
defsubr (&Sfont_info);
#endif
DEFVAR_LISP ("font-encoding-alist", &Vfont_encoding_alist,
doc: /*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment