Store prevglyph as index instead of pointer