def text_width(text):
    """Return the width of the <text> in points."""
    (xmin, xmax, d1, d2) = get_dimension(text)
    return xmax - xmin
def text_width ( text ) : ( xmin , xmax , d1 , d2 ) = get_dimension ( text ) return xmax - xmin
Return the width of the <text> in points.