aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa1998-09-01 02:25:57 +0000
committerKenichi Handa1998-09-01 02:25:57 +0000
commite1d6d5b93f34fbb58e4b9eafbb27c15a915d88f0 (patch)
tree4155a4b6d33a728af3b6352ce4503438cc60c6b5 /src
parentf0c8b3efad7827b7f768f4ea5bae8debcfecd036 (diff)
downloademacs-e1d6d5b93f34fbb58e4b9eafbb27c15a915d88f0.tar.gz
emacs-e1d6d5b93f34fbb58e4b9eafbb27c15a915d88f0.zip
(x_load_font): If SIZE is 0, don't use a name x_list_font returns.
Diffstat (limited to 'src')
-rw-r--r--src/xterm.c2
1 files changed, 1 insertions, 1 deletions
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)
6700 because XListFonts (called in x_list_font) of some X server has 6700 because XListFonts (called in x_list_font) of some X server has
6701 a bug of not finding a font even if the font surely exists and 6701 a bug of not finding a font even if the font surely exists and
6702 is loadable by XLoadQueryFont. */ 6702 is loadable by XLoadQueryFont. */
6703 if (!NILP (font_names)) 6703 if (size > 0 && !NILP (font_names))
6704 fontname = (char *) XSTRING (XCONS (font_names)->car)->data; 6704 fontname = (char *) XSTRING (XCONS (font_names)->car)->data;
6705 6705
6706 BLOCK_INPUT; 6706 BLOCK_INPUT;