(layout_glyphs): Fix handling left_padding of
authorhanda <handa>
Fri, 3 Feb 2006 06:14:10 +0000 (06:14 +0000)
committerhanda <handa>
Fri, 3 Feb 2006 06:14:10 +0000 (06:14 +0000)
composition's base.

src/draw.c

index 0d1d48b..67079db 100644 (file)
@@ -719,6 +719,12 @@ layout_glyphs (MFrame *frame, MGlyphString *gstring, int from, int to,
              base[i].pos = begin;
              base[i].to = end;
            }
+         if (base->left_padding && lbearing < 0)
+           {
+             base->xoff -= lbearing;
+             base->width -= lbearing;
+             lbearing = 0;
+           }
        }
 
       g_physical_ascent = MAX (g_physical_ascent, base->ascent);