Optimize text rendering for headings