Fix Uniscribe clusters with direction-overriden Arabic
authorBehdad Esfahbod <behdad@behdad.org>
Fri, 8 Jun 2012 14:22:06 +0000 (10:22 -0400)
committerBehdad Esfahbod <behdad@behdad.org>
Fri, 8 Jun 2012 14:22:06 +0000 (10:22 -0400)
src/hb-uniscribe.cc

index ce34f77..9d121aa 100644 (file)
@@ -429,11 +429,11 @@ retry:
   }
   if (!backward) {
     for (unsigned int i = 1; i < glyphs_len; i++)
-      if (!glyph_props[i].sva.fClusterStart)
+      if (vis_clusters[i] == -1)
        vis_clusters[i] = vis_clusters[i - 1];
   } else {
     for (int i = glyphs_len - 2; i >= 0; i--)
-      if (!glyph_props[i].sva.fClusterStart)
+      if (vis_clusters[i] == -1)
        vis_clusters[i] = vis_clusters[i + 1];
   }