diff options
| author | Jim Blandy | 1993-06-11 07:02:36 +0000 |
|---|---|---|
| committer | Jim Blandy | 1993-06-11 07:02:36 +0000 |
| commit | 0c94f6ee88cf57affcdb5e45b603bb39a1b7f7ff (patch) | |
| tree | 3e277755748cdd8f2b261900d7971ea9cded7322 | |
| parent | 2dab78028738c7c92c0b50c631a629e365efd5b1 (diff) | |
| download | emacs-0c94f6ee88cf57affcdb5e45b603bb39a1b7f7ff.tar.gz emacs-0c94f6ee88cf57affcdb5e45b603bb39a1b7f7ff.zip | |
* xterm.c (x_new_font): If font_names is zero, that's all the
indication we get that no matches were found.
| -rw-r--r-- | src/xterm.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/xterm.c b/src/xterm.c index 9900ab08884..4d3187d3d0e 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -3935,6 +3935,11 @@ x_new_font (f, fontname) | |||
| 3935 | font_names = (char **) XListFontsWithInfo (x_current_display, fontname, | 3935 | font_names = (char **) XListFontsWithInfo (x_current_display, fontname, |
| 3936 | 1024, &n_matching_fonts, | 3936 | 1024, &n_matching_fonts, |
| 3937 | &font_info); | 3937 | &font_info); |
| 3938 | /* Apparently it doesn't set n_matching_fonts to zero when it can't | ||
| 3939 | find any matches; font_names == 0 is the only clue. */ | ||
| 3940 | if (! font_names) | ||
| 3941 | n_matching_fonts = 0; | ||
| 3942 | |||
| 3938 | /* Don't just give up if n_matching_fonts is 0. | 3943 | /* Don't just give up if n_matching_fonts is 0. |
| 3939 | Apparently there's a bug on Suns: XListFontsWithInfo can | 3944 | Apparently there's a bug on Suns: XListFontsWithInfo can |
| 3940 | fail to find a font, but XLoadQueryFont may still find it. */ | 3945 | fail to find a font, but XLoadQueryFont may still find it. */ |