From 980a8c09cc6f2c1cc660057ceecba3451461032d Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Fri, 23 Jan 2004 08:44:57 +0000 Subject: [PATCH] (x_compute_glyph_string_overhangs): Handle also a composition glyph. --- src/xterm.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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; + } } -- 2.39.2