# HG changeset patch # User Kenichi Handa # Date 904616757 0 # Node ID b36799069143479d2f715f8adaf3e0213dc30f06 # Parent 55a8313019f3e675a97f08dd99f07d6472466688 (x_load_font): If SIZE is 0, don't use a name x_list_font returns. diff -r 55a8313019f3 -r b36799069143 src/xterm.c --- a/src/xterm.c Tue Sep 01 02:24:46 1998 +0000 +++ b/src/xterm.c Tue Sep 01 02:25:57 1998 +0000 @@ -6700,7 +6700,7 @@ 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;