From 7dc42d81caad6e76e3c0758a8524c35725772f0e Mon Sep 17 00:00:00 2001 From: handa Date: Thu, 29 Jul 2004 07:08:02 +0000 Subject: [PATCH] (layout_glyphs): Don't combine a zero width glyph with the previous one if the zero width glyph has left or right padding. --- src/draw.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 1.7.10.4