TextRender: cache the rendered text and implement does_render test

Nitpicking: `rnd` usually brings "random" to mind. Maybe for the example `trd` is a better identifier?