Text rendering improvements