Mercurial > emacs
comparison src/xterm.c @ 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 | 7b362a9bf8e9 |
children | b2c5e1bea50e |
comparison
equal
deleted
inserted
replaced
19061:e2be10e9bf9d | 19062:9cc02044117d |
---|---|
6356 Display *dpy = f != NULL ? FRAME_X_DISPLAY (f) : x_display_list->display; | 6356 Display *dpy = f != NULL ? FRAME_X_DISPLAY (f) : x_display_list->display; |
6357 | 6357 |
6358 patterns = Fassoc (pattern, Valternative_fontname_alist); | 6358 patterns = Fassoc (pattern, Valternative_fontname_alist); |
6359 if (NILP (patterns)) | 6359 if (NILP (patterns)) |
6360 patterns = Fcons (pattern, Qnil); | 6360 patterns = Fcons (pattern, Qnil); |
6361 | |
6362 /* We try at least 10 fonts because X server will return auto-scaled | |
6363 fonts at the head. */ | |
6364 if (maxnames < 10) maxnames = 10; | |
6361 | 6365 |
6362 for (; CONSP (patterns); patterns = XCONS (patterns)->cdr) | 6366 for (; CONSP (patterns); patterns = XCONS (patterns)->cdr) |
6363 { | 6367 { |
6364 int num_fonts; | 6368 int num_fonts; |
6365 char **names; | 6369 char **names; |