Mercurial > emacs
changeset 23162:b36799069143
(x_load_font): If SIZE is 0, don't use a name x_list_font returns.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Tue, 01 Sep 1998 02:25:57 +0000 |
parents | 55a8313019f3 |
children | e754d3dcb5e8 |
files | src/xterm.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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;