changeset 3015:fac66d9828d7

* xterm.c (x_new_font): Reject fonts with varying spacing. We don't support them yet. * xfns.c (x_set_font): Report the error message properly. * xfns.c (Fx_parse_geometry): No need to call check_x here; it doesn't interact with the server at all, and we need it in order to create our first frame.
author Jim Blandy <jimb@redhat.com>
date Mon, 24 May 1993 15:03:32 +0000
parents a416873d97e5
children ce9ea90b5848
files src/xfns.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/xfns.c	Mon May 24 15:01:31 1993 +0000
+++ b/src/xfns.c	Mon May 24 15:03:32 1993 +0000
@@ -814,8 +814,10 @@
   result = x_new_font (f, name);
   UNBLOCK_INPUT;
   
-  if (result)
+  if (result == 1)
     error ("Font \"%s\" is not defined", name);
+  if (result == 2)
+    error ("the characters of the given font have varying widths");
 }
 
 void
@@ -1513,7 +1515,6 @@
   unsigned int width, height;
   Lisp_Object values[4];
 
-  check_x ();
   CHECK_STRING (string, 0);
 
   geometry = XParseGeometry ((char *) XSTRING (string)->data,