Commit e1d6d5b9 authored by Kenichi Handa's avatar Kenichi Handa
Browse files

(x_load_font): If SIZE is 0, don't use a name x_list_font returns.

parent f0c8b3ef
...@@ -6700,7 +6700,7 @@ x_load_font (f, fontname, size) ...@@ -6700,7 +6700,7 @@ x_load_font (f, fontname, size)
because XListFonts (called in x_list_font) of some X server has 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 a bug of not finding a font even if the font surely exists and
is loadable by XLoadQueryFont. */ is loadable by XLoadQueryFont. */
if (!NILP (font_names)) if (size > 0 && !NILP (font_names))
fontname = (char *) XSTRING (XCONS (font_names)->car)->data; fontname = (char *) XSTRING (XCONS (font_names)->car)->data;
BLOCK_INPUT; BLOCK_INPUT;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment