From: handa Date: Thu, 29 Jul 2004 07:08:02 +0000 (+0000) Subject: (layout_glyphs): Don't combine a zero width glyph with X-Git-Tag: REL-1-1-0~52 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7dc42d81caad6e76e3c0758a8524c35725772f0e;p=m17n%2Fm17n-lib.git (layout_glyphs): Don't combine a zero width glyph with the previous one if the zero width glyph has left or right padding. --- diff --git a/src/draw.c b/src/draw.c index 25e2867..ea89008 100644 --- a/src/draw.c +++ b/src/draw.c @@ -539,7 +539,8 @@ layout_glyphs (MFrame *frame, MGlyphString *gstring, int from, int to) if (g == last_g || ! g->combining_code || g->otf_encoded) { /* No combining. */ - if (base->width == 0 && GLYPH_INDEX (base) > from) + if (base->width == 0 && ! base->left_padding && ! base->right_padding + && GLYPH_INDEX (base) > from) { MGlyph *prev = base - 1;