Better text height detection