improvements to text rendering