text rendering improvements