From e1d6d5b93f34fbb58e4b9eafbb27c15a915d88f0 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Tue, 1 Sep 1998 02:25:57 +0000 Subject: [PATCH] (x_load_font): If SIZE is 0, don't use a name x_list_font returns. --- src/xterm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xterm.c b/src/xterm.c index 3993f3a836e..5b0eb720ccb 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -6700,7 +6700,7 @@ x_load_font (f, fontname, size) because XListFonts (called in x_list_font) of some X server has a bug of not finding a font even if the font surely exists and is loadable by XLoadQueryFont. */ - if (!NILP (font_names)) + if (size > 0 && !NILP (font_names)) fontname = (char *) XSTRING (XCONS (font_names)->car)->data; BLOCK_INPUT; -- 2.39.2