def render_surface_from_svg_text(svg_text):
    """Return surface representing SVG given as text.

    The SVG renderer used by pygame doesn't support all SVG features,
    so a bit of experimentation is needed sometimes.
    """
    with BytesIO(
        bytes(svg_text, encoding='utf-8')
    ) as bytestream:

        return load_image(bytestream)
Return surface representing SVG given as text.

    The SVG renderer used by pygame doesn't support all SVG features,
    so a bit of experimentation is needed sometimes.
    
nodezator/surfsman/render.py