aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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,