diff options
author | Richard M. Stallman <rms@gnu.org> | 1993-06-06 22:47:15 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1993-06-06 22:47:15 +0000 |
commit | d8ed04c1d603054e88bbb94bb6ec8d9df49f9989 (patch) | |
tree | 2e69cc3183335d08316dfadad5471b06afba41ab /src/xfaces.c | |
parent | 5975c3147919c1ca0682e4f3604939847f9367d9 (diff) | |
download | emacs-d8ed04c1d603054e88bbb94bb6ec8d9df49f9989.tar.gz |
(same_size_fonts): Compare only the width.
Diffstat (limited to 'src/xfaces.c')
-rw-r--r-- | src/xfaces.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/xfaces.c b/src/xfaces.c index fc56bb4a8a7..7a93111f57d 100644 --- a/src/xfaces.c +++ b/src/xfaces.c @@ -590,9 +590,16 @@ same_size_fonts (font1, font2) XCharStruct *bounds1 = &font1->min_bounds; XCharStruct *bounds2 = &font2->min_bounds; - return (bounds1->width == bounds2->width + return (bounds1->width == bounds2->width); +/* Checking the following caused bad results in some cases + when fonts that should be the same size + actually have very slightly different size. + It is possible that this reintroduces the bug whereby line positions + were not right. However, the right way to fix that is to change xterm.c + so that the vertical positions of lines + depend only on the height of the frame's font. && bounds1->ascent == bounds2->ascent - && bounds1->descent == bounds2->descent); + && bounds1->descent == bounds2->descent); */ } /* Modify face TO by copying from FROM all properties which have |