Bug 448110

Summary: Improve SVG rendering
Product: [Applications] gwenview Reporter: medin <med.medin.2014>
Component: generalAssignee: Gwenview Bugs <gwenview-bugs-null>
Severity: wishlist CC: private_lock
Priority: NOR    
Version: 21.12.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Gwenview fails to show text on svg

Description medin 2022-01-08 11:56:52 UTC
Created attachment 145216 [details]
Gwenview fails to show text on svg

Currently Gwenview uses Qt SVG library (QSvgRenderer) to display SVG files, the problem is that Qt supports only SVG 1.2 Tiny which is a minimal and restricted subset of the full SVG standard, for example if you use tpan elements you can't see that text on Gwenview (see attached image).
Many diagram and vector editors (like LibreOffice Draw and Inkscape) uses multiples essential SVG elements outside SVG 1.2 Tiny to enable more styling and powerful features, and it seems Qt team is not interested in adding support to full SVG standard https://bugreports.qt.io/browse/QTBUG-61677
The optimal solution would be to embed an external viewer (like Qt WebEngine or inkview) to make Gwenview more capable of responding to SVG upgrades.
Comment 1 Holger 2022-01-09 19:03:01 UTC

*** This bug has been marked as a duplicate of bug 336436 ***