sensible calculation of character height