fxsvgimage
fxsvgimage copied to clipboard
<tspan> elements not rendering correctly
The following SVG doesn't seem to render correctly. In the browsers I've tried (e.g. Edge, Internet Explorer) it looks like this:
But the JavaFX scene graph created by fxsvgimage looks like this:
It looks like a combination of problems - perhaps not handling whitespace collapse (see https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/xml:space) and also not positioning/styling tspan elements correctly (most of them are missing).
I'm new to fxsvgimage so it's possible I haven't set it up correctly but other SVG images seem fine.
Hello, the image is a PNG in the issue, can you upload the original svg image?
Done. Sorry for the confusion!
Thanks!
I looked at the way I parse text and tspan elements, and I have to change the way I parse these elements :)