def _check_is_valid_text(text):
    """Checks if a text string will be able to be displayed

    :param text: the text to test
    :raises ValueError: if the text cannot be printed on the canvas
    """
    if not text.isprintable():
        raise ValueError('text may not contain non-printing characters')
