]> git.eshelyaron.com Git - emacs.git/commitdiff
(x_compute_glyph_string_overhangs): Handle also a
authorKenichi Handa <handa@m17n.org>
Fri, 23 Jan 2004 08:44:57 +0000 (08:44 +0000)
committerKenichi Handa <handa@m17n.org>
Fri, 23 Jan 2004 08:44:57 +0000 (08:44 +0000)
composition glyph.

src/xterm.c

index 7d3ef24de155f0718fc8ba635db9ecdecfc4e65a..9bba701b8d9a01647d01c877b0f13e3ceb765df6 100644 (file)
@@ -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;
+    }
 }