fixed case where loca table is indexed in long format

Font was getting distorted, when number of characters in the cmap crosses certain limit (around 360-370 in my case, but can be random). Found that this happens when loca table starts getting indexed in long format instead of short one.

Please review & merge.

Regards,
Niraj Patkar