diff options
| author | Jim Blandy | 1993-05-25 07:03:38 +0000 |
|---|---|---|
| committer | Jim Blandy | 1993-05-25 07:03:38 +0000 |
| commit | f126bd6787ff4e6ce17550566f5ba3e6769df9bc (patch) | |
| tree | 4b0d56be973aa472259237c9ab49f1c812ed1b08 /src/xterm.c | |
| parent | 1d9fd7feaaca672cffca01645c2f8dcd64fd1058 (diff) | |
| download | emacs-f126bd6787ff4e6ce17550566f5ba3e6769df9bc.tar.gz emacs-f126bd6787ff4e6ce17550566f5ba3e6769df9bc.zip | |
* 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.
Diffstat (limited to 'src/xterm.c')
| -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 046cf5100a6..8f61d79d287 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -3939,9 +3939,14 @@ x_new_font (f, fontname) | |||
| 3939 | XFontStruct *font; | 3939 | XFontStruct *font; |
| 3940 | 3940 | ||
| 3941 | /* Try to find a character-cell font in the list. */ | 3941 | /* Try to find a character-cell font in the list. */ |
| 3942 | #if 0 | ||
| 3943 | /* A laudable goal, but this isn't how to do it. */ | ||
| 3942 | for (i = 0; i < n_matching_fonts; i++) | 3944 | for (i = 0; i < n_matching_fonts; i++) |
| 3943 | if (! font_info[i].per_char) | 3945 | if (! font_info[i].per_char) |
| 3944 | break; | 3946 | break; |
| 3947 | #else | ||
| 3948 | i = 0; | ||
| 3949 | #endif | ||
| 3945 | 3950 | ||
| 3946 | if (i >= n_matching_fonts) | 3951 | if (i >= n_matching_fonts) |
| 3947 | return 2; | 3952 | return 2; |