optimize text rendering
merge