Fine-tune TextDocument::drawXxx()