aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1993-06-06 22:47:15 +0000
committerRichard M. Stallman1993-06-06 22:47:15 +0000
commit464078619ab5c8db2d87398dfe50897f94c3eea9 (patch)
tree1938a484b15fd31c66c64be731b028602b485075
parent2798dfd62927c3db099042b5e62565dc7890ca0a (diff)
downloademacs-464078619ab5c8db2d87398dfe50897f94c3eea9.tar.gz
emacs-464078619ab5c8db2d87398dfe50897f94c3eea9.zip
(same_size_fonts): Compare only the width.
-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