descript = new GlyfDescript[numGlyphs];
ByteArrayInputStream bais = new ByteArrayInputStream(buf);
for (int i = 0; i < numGlyphs; i++) {
int len = loca.getOffset((short)(i + 1)) - loca.getOffset(i);
if (len > 0) {
bais.reset();
bais.skip(loca.getOffset(i));
short numberOfContours = (short)(bais.read()<<8 | bais.read());
if (numberOfContours >= 0) {
descript[i] = new GlyfSimpleDescript(this, numberOfContours, bais);
}