Commit a431c5f4 authored by Kenichi Handa's avatar Kenichi Handa

(x_get_glyph_overhangs): Fix calculation of right

overhang for the automatic composition case.
parent 3561b671
...@@ -19926,7 +19926,7 @@ x_get_glyph_overhangs (glyph, f, left, right) ...@@ -19926,7 +19926,7 @@ x_get_glyph_overhangs (glyph, f, left, right)
composition_gstring_width (gstring, glyph->u.cmp.from, composition_gstring_width (gstring, glyph->u.cmp.from,
glyph->u.cmp.to + 1, &metrics); glyph->u.cmp.to + 1, &metrics);
if (metrics.rbearing > metrics.width) if (metrics.rbearing > metrics.width)
*right = metrics.rbearing; *right = metrics.rbearing - metrics.width;
if (metrics.lbearing < 0) if (metrics.lbearing < 0)
*left = - metrics.lbearing; *left = - metrics.lbearing;
} }
......
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