# HG changeset patch # User Richard M. Stallman # Date 739406835 0 # Node ID aad9fd004281568a2c0ec6289a5c70dba8d2848a # Parent a0bd8ccfcf1cf78e39cd9702d05569f89ddbb968 (same_size_fonts): Compare only the width. diff -r a0bd8ccfcf1c -r aad9fd004281 src/xfaces.c --- a/src/xfaces.c Sun Jun 06 22:36:23 1993 +0000 +++ b/src/xfaces.c Sun Jun 06 22:47:15 1993 +0000 @@ -590,9 +590,16 @@ 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