int i, n;
for (i = 0; i < gstring->used; i++)
- gstring->glyphs[i].f.index.from = gstring->glyphs[i].f.index.to = i;
+ {
+ gstring->glyphs[i].positioning_type = 0;
+ gstring->glyphs[i].f.index.from = gstring->glyphs[i].f.index.to = i;
+ }
if (! otf->gsub
&& OTF_get_table (otf, "GSUB") < 0)
int *lookup_indices;
int i, n;
+ for (i = 0; i < gstring->used; i++)
+ gstring->glyphs[i].positioning_type = 0;
+
if (! otf->gpos
&& OTF_get_table (otf, "GPOS") < 0)
return errret;
if (n < 0)
return errret;
- for (i = 0; i < gstring->used; i++)
- gstring->glyphs[i].positioning_type = 0;
-
for (i = 0; i < n; i++)
{
int index = lookup_indices[i];