Removal of unused glyphs. Replacement using reference glyphs.