Python SVG multi line text

42 Views Asked by At

I am currently trying to generate svgs with multi-line text inside of them with Python.

For that I tried the pycairo library:

    cr.move_to(20, 30)
    cr.show_text("Most relationships seem so transitory")

The issue I have with that approach is that it is unable to create line-breaks so the text overflow at the right side if it is longer. Is there an approach to create svgs with multiline-text without the text overflowing?

0

There are 0 best solutions below