-
Bug
-
Resolution: Out of scope
-
Not Evaluated
-
None
-
4.6.2
-
None
-
Windows 7, Qt 4.6.0, but also reported under Linux/Fedora
In the attached file, there is a <text> element which contains a <tspan> element, and there are some spaces between <text ...> <tspan ...>. If you display this image in Inkscape or Chrome, the text ("pwr1" ) is almost left-aligned with the black rectangle beneath, but if you display this image in Qt (for example, using the SvgViewer demo), the text is shifted somewhat to the right. If you remove the xml:space="preserve" attribute, or remove the spaces between <text> and <tspan>, then Qt's display matches Inkscape's (or Chrome's). However, the difference between the way the three programs handles this case becomes more pronounced if you put some non-whitespace text in the file. For example <text ...> hello <tspan ... >
It may be that Qt's implementation is correct, and Chrome and Inkscape have it wrong...