more complex hash function for glyph label