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:
parent
3561b6717a
commit
a431c5f4a2
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue