Improving glyph extraction mechanism