Reimplemented text rendering.