rsvg-convert cannot handle multiline text in SVG (from drawio)
I have created this simple diagram in drawio-desktop a.k.a. diagrams.net
From drawio 14.5.1 (so, latest at time of writing) itself, I export the same diagram as SVG, test_drawio.svg
:
Opening this SVG, test_drawio.svg
, in Firefox 88 seems fine:
If I try to convert this test_drawio.svg
using rsvg-convert
(installed via package mingw-w64-x86_64-librsvg 2.50.3-1
in MSYS2 on Windows 10):
$ rsvg-convert.exe --version
rsvg-convert version 2.50.3
$ rsvg-convert.exe -f pdf -o test_drawio.pdf test_drawio.svg
(rsvg-convert.exe:9448): Pango-WARNING **: 14:56:04.975: couldn't load font "Helvetica Not-Rotated 17", falling back to "Sans Not-Rotated 17", expect ugly output.
... the PDF gets generated - but I no longer have multiline text, only single line text with ellipsis (though note, this seems to be a fallback written in the SVG by drawio):
Is it possble to get rsvg-convert
to convert this SVG correctly to PDF - so it looks the same, as when the SVG is viewed in, say, Firefox?