(layout_glyphs): Call mfont__ft_drive_gpos with glyphs of
authorhanda <handa>
Fri, 23 Jul 2004 06:53:42 +0000 (06:53 +0000)
committerhanda <handa>
Fri, 23 Jul 2004 06:53:42 +0000 (06:53 +0000)
the same bidi level.

src/draw.c

index 35b7a66..11563eb 100644 (file)
@@ -526,7 +526,9 @@ layout_glyphs (MFrame *frame, MGlyphString *gstring, int from, int to)
 
       if (base->otf_cmd)
        {
-         while (g < last_g && base->otf_cmd == g->otf_cmd) g++;
+         while (g < last_g && base->otf_cmd == g->otf_cmd
+                && base->bidi_level == g->bidi_level)
+           g++;
          mfont__ft_drive_gpos (gstring, GLYPH_INDEX (base), GLYPH_INDEX (g));
        }
     }