changeset 19062:9cc02044117d

(x_list_fonts): Request at least 10 fonts by XListFonts.
author Kenichi Handa <handa@m17n.org>
date Fri, 01 Aug 1997 00:29:34 +0000
parents e2be10e9bf9d
children 35cddfda2ba8
files src/xterm.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/xterm.c	Fri Aug 01 00:12:35 1997 +0000
+++ b/src/xterm.c	Fri Aug 01 00:29:34 1997 +0000
@@ -6359,6 +6359,10 @@
   if (NILP (patterns))
     patterns = Fcons (pattern, Qnil);
 
+  /* We try at least 10 fonts because X server will return auto-scaled
+     fonts at the head.  */
+  if (maxnames < 10) maxnames = 10;
+
   for (; CONSP (patterns); patterns = XCONS (patterns)->cdr)
     {
       int num_fonts;