correct glyph label hash and make set text more efficient