Commit 5753e4da authored by Kenichi Handa's avatar Kenichi Handa
Browse files

(x_get_glyph_overhangs): Fix calculation of right

overhang for the static composition case.
parent a431c5f4
2009-06-11 Kenichi Handa <handa@m17n.org>
* xdisp.c (x_get_glyph_overhangs): Fix calculation of right
overhang for the static composition case.
2009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
* xdisp.c (x_get_glyph_overhangs): Fix calculation of right
overhang for the automatic composition case.
* xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
composition case.
......
......@@ -19913,10 +19913,10 @@ x_get_glyph_overhangs (glyph, f, left, right)
{
struct composition *cmp = composition_table[glyph->u.cmp.id];
if (cmp->rbearing - cmp->pixel_width)
if (cmp->rbearing > cmp->pixel_width)
*right = cmp->rbearing - cmp->pixel_width;
if (cmp->lbearing < 0);
*left = - cmp->lbearing;
if (cmp->lbearing < 0)
*left = - cmp->lbearing;
}
else
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment