From: Kenichi Handa Date: Fri, 23 Jan 2004 08:44:57 +0000 (+0000) Subject: (x_compute_glyph_string_overhangs): Handle also a X-Git-Tag: emacs-pretest-23.0.90~8295^2~1625 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=980a8c09cc6f2c1cc660057ceecba3451461032d;p=emacs.git (x_compute_glyph_string_overhangs): Handle also a composition glyph. --- diff --git a/src/xterm.c b/src/xterm.c index 7d3ef24de15..9bba701b8d9 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -1126,8 +1126,7 @@ x_set_glyph_string_clipping (s) /* RIF: - Compute left and right overhang of glyph string S. If S is a glyph - string for a composition, assume overhangs don't exist. */ + Compute left and right overhang of glyph string S. */ static void x_compute_glyph_string_overhangs (s) @@ -1143,6 +1142,11 @@ x_compute_glyph_string_overhangs (s) s->right_overhang = cs.rbearing > cs.width ? cs.rbearing - cs.width : 0; s->left_overhang = cs.lbearing < 0 ? -cs.lbearing : 0; } + else if (s->cmp) + { + s->right_overhang = s->cmp->rbearing - s->cmp->pixel_width; + s->left_overhang = - s->cmp->lbearing; + } }