Fix Uniscribe clusters with direction-overriden Arabic

This commit is contained in:
Behdad Esfahbod 2012-06-08 10:22:06 -04:00
parent b069c3c31b
commit 8e7beba7c3
1 changed files with 2 additions and 2 deletions

View 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];
}