improved computation of ascent and descent of font metrics