aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/xfaces.c11
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)
590 XCharStruct *bounds1 = &font1->min_bounds; 590 XCharStruct *bounds1 = &font1->min_bounds;
591 XCharStruct *bounds2 = &font2->min_bounds; 591 XCharStruct *bounds2 = &font2->min_bounds;
592 592
593 return (bounds1->width == bounds2->width 593 return (bounds1->width == bounds2->width);
594/* Checking the following caused bad results in some cases
595 when fonts that should be the same size
596 actually have very slightly different size.
597 It is possible that this reintroduces the bug whereby line positions
598 were not right. However, the right way to fix that is to change xterm.c
599 so that the vertical positions of lines
600 depend only on the height of the frame's font.
594 && bounds1->ascent == bounds2->ascent 601 && bounds1->ascent == bounds2->ascent
595 && bounds1->descent == bounds2->descent); 602 && bounds1->descent == bounds2->descent); */
596} 603}
597 604
598/* Modify face TO by copying from FROM all properties which have 605/* Modify face TO by copying from FROM all properties which have