(xft_render): Pay attention to members left_padding and
authorhanda <handa>
Mon, 26 Jul 2004 11:38:15 +0000 (11:38 +0000)
committerhanda <handa>
Mon, 26 Jul 2004 11:38:15 +0000 (11:38 +0000)
right_padding of MGlyph.

src/m17n-X.c

index ef46273..36b317b 100644 (file)
@@ -977,7 +977,7 @@ xft_render (MDrawWindow win, int x, int y,
   glyphs = alloca (sizeof (FT_UInt) * (to - from));
   for (last_x = x, nglyphs = 0, g = from; g < to; x += g++->width)
     {
-      if (g->xoff == 0 && g->yoff == 0)
+      if (g->xoff == 0 && g->yoff == 0 && !g->left_padding && !g->right_padding)
        glyphs[nglyphs++] = g->code;
       else
        {