if (glyphs[i] != null) {
return glyphs[i];
} else {
final TTFInput in = getInput();
in.pushPos();
in.seek(offsets[i]);
int numberOfContours = in.readShort();
if (numberOfContours >= 0) {
glyphs[i] = new SimpleGlyph(in, numberOfContours);
} else {
glyphs[i] = new CompositeGlyph(in, this);