improve hash methods for glyph label and font