Mercurial > emacs
changeset 95421:3350c9ac1f37
(Ffont_info): Define only if HAVE_WINDOW_SYSTEM is
defined.
(syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
defined.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Fri, 30 May 2008 13:21:33 +0000 |
parents | f035c0b179dc |
children | d3eb9cc70765 |
files | src/font.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/font.c Fri May 30 03:02:04 2008 +0000 +++ b/src/font.c Fri May 30 13:21:33 2008 +0000 @@ -4349,6 +4349,8 @@ #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 @@ #endif return info; } +#endif #define BUILD_STYLE_TABLE(TBL) \ @@ -4591,7 +4594,9 @@ defsubr (&Sdraw_string); #endif #endif /* FONT_DEBUG */ +#ifdef HAVE_WINDOW_SYSTEM defsubr (&Sfont_info); +#endif DEFVAR_LISP ("font-encoding-alist", &Vfont_encoding_alist, doc: /*