changed formula slightly for max and min font sizes