def textpath(self, txt, x, y, width=None, height=<NUM_LIT>, draw=False, **kwargs):
txt = self.Text(txt, x, y, width, height, enableRendering=False, **kwargs)<EOL>path = txt.path<EOL>if draw:<EOL><INDENT>path.draw()<EOL><DEDENT>return path<EOL>
Generates an outlined path of the input text.

:param txt: Text to output
:param x: x-coordinate of the top left corner
:param y: y-coordinate of the top left corner
:param width: text width
:param height: text height
:param draw: Set to False to inhibit immediate drawing (defaults to False)
:return: Path object representing the text.