diff options
| author | Kenichi Handa | 2009-06-11 02:34:57 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2009-06-11 02:34:57 +0000 |
| commit | 5753e4da2b6abed72700f61ffa94c9a99ceb404b (patch) | |
| tree | b06fb32568e62d300b0155edfedecba3d97a5c29 | |
| parent | a431c5f4a2630123f502cd3e93e2bc6535f15dba (diff) | |
| download | emacs-5753e4da2b6abed72700f61ffa94c9a99ceb404b.tar.gz emacs-5753e4da2b6abed72700f61ffa94c9a99ceb404b.zip | |
(x_get_glyph_overhangs): Fix calculation of right
overhang for the static composition case.
| -rw-r--r-- | src/ChangeLog | 8 | ||||
| -rw-r--r-- | src/xdisp.c | 6 |
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 @@ | |||
| 1 | 2009-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 | |||
| 1 | 2009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | 6 | 2009-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 | { |