}
for (i = 0; i < attach->ComponentCount; i++)
for (j = 0; j < ClassCount; j++)
- if (read_anchor (otf, stream, offset + attach->offset,
- &attach->ComponentRecord[i].LigatureAnchor[j]) < 0)
- return -1;
+ {
+ if (attach->ComponentRecord[i].LigatureAnchor[j].offset)
+ {
+ if (read_anchor (otf, stream, offset + attach->offset,
+ &attach->ComponentRecord[i].LigatureAnchor[j]) < 0)
+ return -1;
+ }
+ else
+ attach->ComponentRecord[i].LigatureAnchor[j].AnchorFormat = 0;
+ }
return 0;
}