aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Blandy1993-05-24 15:03:32 +0000
committerJim Blandy1993-05-24 15:03:32 +0000
commitc7e1d890aed499f70f07a421309da05fc8338858 (patch)
treed3e976c6336a81475e4a81797f5275a295320ef1
parentdad297617db181b1077d36e818948bba4eddcd08 (diff)
downloademacs-c7e1d890aed499f70f07a421309da05fc8338858.tar.gz
emacs-c7e1d890aed499f70f07a421309da05fc8338858.zip
* 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.
-rw-r--r--src/xfns.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/xfns.c b/src/xfns.c
index df2426f1e97..b4413e2e940 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -814,8 +814,10 @@ x_set_font (f, arg, oldval)
814 result = x_new_font (f, name); 814 result = x_new_font (f, name);
815 UNBLOCK_INPUT; 815 UNBLOCK_INPUT;
816 816
817 if (result) 817 if (result == 1)
818 error ("Font \"%s\" is not defined", name); 818 error ("Font \"%s\" is not defined", name);
819 if (result == 2)
820 error ("the characters of the given font have varying widths");
819} 821}
820 822
821void 823void
@@ -1513,7 +1515,6 @@ Returns an alist of the form ((top . TOP), (left . LEFT) ... ).")
1513 unsigned int width, height; 1515 unsigned int width, height;
1514 Lisp_Object values[4]; 1516 Lisp_Object values[4];
1515 1517
1516 check_x ();
1517 CHECK_STRING (string, 0); 1518 CHECK_STRING (string, 0);
1518 1519
1519 geometry = XParseGeometry ((char *) XSTRING (string)->data, 1520 geometry = XParseGeometry ((char *) XSTRING (string)->data,