Fix text height measurements for non-multiline text