Implemented text drawing.