fix glyph height calculation