Got painting working so as to only render the portion of a text grid that it needs to, and working within clip rectangle visible during scrolling.