Line height and text rendering optimization