Bug 448110 - Improve SVG rendering
Summary: Improve SVG rendering
Status: RESOLVED DUPLICATE of bug 336436
Alias: None
Product: gwenview
Classification: Applications
Component: general (show other bugs)
Version: 21.12.0
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Gwenview Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-08 11:56 UTC by medin
Modified: 2022-01-09 19:03 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Gwenview fails to show text on svg (397.21 KB, image/png)
2022-01-08 11:56 UTC, medin
Details

Note You need to log in before you can comment on or make changes to this bug.
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 ***