Introduce renderText() as a Viewer option

This hook is to change the rendering of the text field.