]> code.delx.au - gnu-emacs/commitdiff
(x_get_glyph_overhangs): Fix calculation of right
authorKenichi Handa <handa@m17n.org>
Thu, 11 Jun 2009 02:32:30 +0000 (02:32 +0000)
committerKenichi Handa <handa@m17n.org>
Thu, 11 Jun 2009 02:32:30 +0000 (02:32 +0000)
overhang for the automatic composition case.

src/xdisp.c

index 224dd4853b8e4806ca80651dce8d8a51efc86d15..eff922e742263312ff76d43ae0f663bb4e0460dc 100644 (file)
@@ -19926,7 +19926,7 @@ x_get_glyph_overhangs (glyph, f, left, right)
          composition_gstring_width (gstring, glyph->u.cmp.from,
                                     glyph->u.cmp.to + 1, &metrics);
          if (metrics.rbearing > metrics.width)
-           *right = metrics.rbearing;
+           *right = metrics.rbearing - metrics.width;
          if (metrics.lbearing < 0)
            *left = - metrics.lbearing;
        }