<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def text_width(string, font_name, font_size):
 """Determine with width in pixels of string."""

    return stringWidth(string, fontName=font_name, fontSize=font_size)