From: handa Date: Fri, 3 Feb 2006 06:14:10 +0000 (+0000) Subject: (layout_glyphs): Fix handling left_padding of X-Git-Tag: REL-1-3-2~10 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=a68edcaa81c84247897506f8a0f554733397ba56;p=m17n%2Fm17n-lib.git (layout_glyphs): Fix handling left_padding of composition's base. --- diff --git a/src/draw.c b/src/draw.c index 0d1d48b..67079db 100644 --- a/src/draw.c +++ b/src/draw.c @@ -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);