def METHOD_NAME(text: str) -> int:
    """Calculates and returns the width of any character or text string
    :param text_string: text
    :returns: width of any character or text string
    """
    return p5.renderer.METHOD_NAME(text)