From: Kenichi Handa Date: Tue, 1 Sep 1998 02:25:57 +0000 (+0000) Subject: (x_load_font): If SIZE is 0, don't use a name x_list_font returns. X-Git-Tag: emacs-20.4~1787 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e1d6d5b93f34fbb58e4b9eafbb27c15a915d88f0;p=emacs.git (x_load_font): If SIZE is 0, don't use a name x_list_font returns. --- 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;