(layout_glyphs): Don't combine a zero width glyph with
authorhanda <handa>
Thu, 29 Jul 2004 07:08:02 +0000 (07:08 +0000)
committerhanda <handa>
Thu, 29 Jul 2004 07:08:02 +0000 (07:08 +0000)
the previous one if the zero width glyph has left or right
padding.

src/draw.c

index 25e2867..ea89008 100644 (file)
@@ -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;