TextRender: cache the rendered text and implement does_render test

Turn this header into a POD block.