Opened 15 years ago

Last modified 14 years ago

#1796 new bug

Multi-line text in a SVG file is not drawn correctly in Print Composer

Reported by: craigleat Owned by: nobody
Priority: major: does not work as expected Milestone: Version 1.7.0
Component: Printing Version: Trunk
Keywords: SVG Cc: pcav, mhugent, botsnlinux@…
Must Fix for Release: No Platform: Linux
Platform Version: ubuntu 9.04 Awaiting user input: no

Description

The attached file is an inkscape SVG containing an A2 titleblock. The multi-line text is drawn on a single line when the SVG is imported into Print Composer.

Attachments (1)

A2 Test.zip (131.3 KB ) - added by craigleat 15 years ago.
Sample SVG with multi-line text

Download all attachments as: .zip

Change History (9)

by craigleat, 15 years ago

Attachment: A2 Test.zip added

Sample SVG with multi-line text

comment:1 by craigleat, 15 years ago

This bug was created from: http://trac.osgeo.org/qgis/ticket/1647

comment:2 by lutra, 15 years ago

Cc: pcav added

This is duplicate of #1647 (see below the last comment) and seems to be not a qgis problem.

Multiline text often fails to import correctly. There are two possible solutions (outside of QGIS):


* Fix the import problems in QT (I believe that's the desired route) 

* Fix the Inkscape export - which is theoretically standards compliant - but a bit awkward as it outputs everything in styles and uses strange repeated/redundant style and placement attributes. Once the attributes are cleaned up manuall, QGIS importst the SVGs fine


I would recommend fixing both issues - but it is somehow outside the scope of QGIS. So I guess we can really close this bug. It's probably not solved but it can't be solved in QGIS directly.



We should knock on Nokia/Trolltech and Inkscape door to get this fixed.

comment:3 by craigleat, 15 years ago

I don't think it is a duplicate since #1647 is an enhancement and moreover has been closed. The current bug should remain open until fixed since it affects usability. If it needs to be fixed upstream then great it won't consume our devs' time.

in reply to:  2 comment:4 by craigleat, 15 years ago

Replying to lutra:

  • Fix the Inkscape export

Inkscape appears to work correctly as the SVG file attached to this ticket displays properly in Firefox. The problem seems to be with QGIS or its dependencies.

comment:5 by lutra, 15 years ago

Cc: mhugent botsnlinux@… added

comment:6 by mhugent, 15 years ago

This is most likely a bug in the Qt svg code

in reply to:  6 comment:7 by craigleat, 15 years ago

Replying to mhugent:

This is most likely a bug in the Qt svg code

Marco, are you able to report this on the Qt Task Tracker? Sorry, but I don't feel I know enough Qt to make a meaningful bug report.

http://qt.nokia.com/developer/task-tracker

comment:8 by pcav, 14 years ago

Milestone: Version 1.5.0Version 1.6.0
Note: See TracTickets for help on using tickets.