aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenichi Handa2009-06-11 02:34:57 +0000
committerKenichi Handa2009-06-11 02:34:57 +0000
commit5753e4da2b6abed72700f61ffa94c9a99ceb404b (patch)
treeb06fb32568e62d300b0155edfedecba3d97a5c29
parenta431c5f4a2630123f502cd3e93e2bc6535f15dba (diff)
downloademacs-5753e4da2b6abed72700f61ffa94c9a99ceb404b.tar.gz
emacs-5753e4da2b6abed72700f61ffa94c9a99ceb404b.zip
(x_get_glyph_overhangs): Fix calculation of right
overhang for the static composition case.
-rw-r--r--src/ChangeLog8
-rw-r--r--src/xdisp.c6
2 files changed, 11 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 37f160a040b..d545ac7f2da 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,13 @@
12009-06-11 Kenichi Handa <handa@m17n.org>
2
3 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
4 overhang for the static composition case.
5
12009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 62009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2 7
8 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
9 overhang for the automatic composition case.
10
3 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic 11 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
4 composition case. 12 composition case.
5 13
diff --git a/src/xdisp.c b/src/xdisp.c
index eff922e7422..0f3674433b5 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -19913,10 +19913,10 @@ x_get_glyph_overhangs (glyph, f, left, right)
19913 { 19913 {
19914 struct composition *cmp = composition_table[glyph->u.cmp.id]; 19914 struct composition *cmp = composition_table[glyph->u.cmp.id];
19915 19915
19916 if (cmp->rbearing - cmp->pixel_width) 19916 if (cmp->rbearing > cmp->pixel_width)
19917 *right = cmp->rbearing - cmp->pixel_width; 19917 *right = cmp->rbearing - cmp->pixel_width;
19918 if (cmp->lbearing < 0); 19918 if (cmp->lbearing < 0)
19919 *left = - cmp->lbearing; 19919 *left = - cmp->lbearing;
19920 } 19920 }
19921 else 19921 else
19922 { 19922 {