From a68edcaa81c84247897506f8a0f554733397ba56 Mon Sep 17 00:00:00 2001 From: handa Date: Fri, 3 Feb 2006 06:14:10 +0000 Subject: [PATCH] (layout_glyphs): Fix handling left_padding of composition's base. --- src/draw.c | 6 ++++++ 1 file changed, 6 insertions(+) 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); -- 1.7.10.4