1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-05 19:31:02 -08:00

(x_get_glyph_overhangs): Fix calculation of right

overhang for the automatic composition case.
This commit is contained in:
Kenichi Handa 2009-06-11 02:32:30 +00:00
parent 3561b6717a
commit a431c5f4a2

View 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;
}