mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-20 11:33:09 -08:00
* xfaces.c (merge_faces): You can't tell if a font is a
character-cell font or not by testing whether or not it has a per_char table. They all do. * xterm.c (x_new_font): Same deal.
This commit is contained in:
parent
1d9fd7feaa
commit
f126bd6787
1 changed files with 5 additions and 0 deletions
|
|
@ -3939,9 +3939,14 @@ x_new_font (f, fontname)
|
|||
XFontStruct *font;
|
||||
|
||||
/* Try to find a character-cell font in the list. */
|
||||
#if 0
|
||||
/* A laudable goal, but this isn't how to do it. */
|
||||
for (i = 0; i < n_matching_fonts; i++)
|
||||
if (! font_info[i].per_char)
|
||||
break;
|
||||
#else
|
||||
i = 0;
|
||||
#endif
|
||||
|
||||
if (i >= n_matching_fonts)
|
||||
return 2;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue