Bug 330585

Summary: Dolphin preview of SVG file (done by ksvg2?) and Inkscape show different render result
Product: [Frameworks and Libraries] kio-extras Reporter: David Tonhofer <bughunt>
Component: Thumbnails and previewsAssignee: Plasma Bugs List <plasma-bugs>
Status: CONFIRMED ---    
Severity: normal CC: mail, nate, postix, putr4.s
Priority: NOR    
Version: 17.12.3   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Screenshot
Bug example

Description David Tonhofer 2014-01-30 15:57:47 UTC
1) Created an SVG file with a "text" tag and two "tspan" tags inside:

   <text
       xml:space="preserve"
       style="font-size:20px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans"
       x="44.781368"
       y="69.659859"
       id="text5342"
       sodipodi:linespacing="125%"><tspan
         sodipodi:role="line"
         id="tspan5344"
         x="44.781368"
         y="69.659859"
         style="font-size:32px">Data title goes here</tspan><tspan
         sodipodi:role="line"
         x="44.781368"
         y="97.698868"
         id="tspan5346">Data subtitle goes here</tspan></text>

2) The Dolphin preview screen shows the two text strings in a single line
3) Inkscape shows the texts one below the other

... not sure which is right,.

Reproducible: Always
Comment 1 David Tonhofer 2014-01-30 15:58:35 UTC
Created attachment 84900 [details]
Screenshot

Differences in text alignment
Comment 2 David Tonhofer 2014-01-30 16:00:22 UTC
Created attachment 84901 [details]
Bug example
Comment 3 Frank Reininghaus 2014-01-30 16:05:11 UTC
Thanks for the bug report. Please note that previews are not generated by Dolphin itself, but by an external process. These processes are controlled by a PreviewJob from the KIO part of kdelibs. Some of the thumbnailers for different formats are part of kde-runtime. I'm not sure if this is also the case for the SVG thumbnailer.

Considering that

(In reply to comment #0)
> ... not sure which is right,.

and that your KDE version is pretty outdated, I suggest that you find out "which is right" and re-test with KDE SC 4.12.x. We can then re-assign this report to kio/thumbnail or another suitable product. Thanks.
Comment 4 David Tonhofer 2014-01-30 16:22:29 UTC
Thanks.

This is going to take a bit as I have to make space and time to upgrade to the latest Fedora. I will report back then.
Comment 5 Julian Steinmann 2018-03-31 14:43:27 UTC
I can still reproduce this bug with Dolphin 17.12.3 & KDE Plasma 5.12.3. I think this is probably an issue with the svg thumbnailer (ksvg2?), as both GIMP and Inkscape render it differently. We should reassign this bug to the respective product.