# HG changeset patch # User Kenichi Handa # Date 1074847497 0 # Node ID 7d1daf16ade9103f47ab042a11bed0639f2b8f6b # Parent eee9d99444cc2e55986a8b0dd74ec926180b31fd (x_compute_glyph_string_overhangs): Handle also a composition glyph. diff -r eee9d99444cc -r 7d1daf16ade9 src/xterm.c --- a/src/xterm.c Fri Jan 23 08:43:36 2004 +0000 +++ b/src/xterm.c Fri Jan 23 08:44:57 2004 +0000 @@ -1126,8 +1126,7 @@ /* 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 @@ 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; + } }