update text drawing