text rendering fixes