Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
0c94f6ee
Commit
0c94f6ee
authored
Jun 11, 1993
by
Jim Blandy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* xterm.c (x_new_font): If font_names is zero, that's all the
indication we get that no matches were found.
parent
2dab7802
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
src/xterm.c
src/xterm.c
+5
-0
No files found.
src/xterm.c
View file @
0c94f6ee
...
...
@@ -3935,6 +3935,11 @@ x_new_font (f, fontname)
font_names = (char **) XListFontsWithInfo (x_current_display, fontname,
1024, &n_matching_fonts,
&font_info);
/* Apparently it doesn't set n_matching_fonts to zero when it can't
find any matches; font_names == 0 is the only clue. */
if (! font_names)
n_matching_fonts = 0;
/* Don't just give up if n_matching_fonts is 0.
Apparently there's a bug on Suns: XListFontsWithInfo can
fail to find a font, but XLoadQueryFont may still find it. */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment