Improving performance for wide text rendering