Page MenuHomePhabricator

SVGs with tspan that have multiple x or y coordinates don't render properly
Closed, DuplicatePublic

Description

Author: M8R-udfkkf

Description:
It appears that text isn't being thumbnailed correctly as seen at http://en.wikipedia.org/wiki/Wikipedia:Vpt#SVG_rendering_problem
with the image at
http://commons.wikimedia.org/wiki/File:ISS_components.svg

If this isn't a bug...please tell me how to fix the SVG. Thanks!


Version: unspecified
Severity: normal

Details

Reference
bz23574

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 11:05 PM
bzimport set Reference to bz23574.
bzimport added a subscriber: Unknown Object (MLST).
TheDJ added a comment.Nov 4 2010, 4:34 AM

Solution for Wikipedia is not to use tspan's but only plain <text> elements. tspans are rather broken in librsvg.

*** Bug 24916 has been marked as a duplicate of this bug. ***

TheDJ added a comment.Dec 4 2011, 9:07 PM

After the recent update, the font size issue with tspans seems to have significantly improved. The position of tspans however still seems rather broken if you look at the earlier versions of this file.

TheDJ added a comment.Dec 4 2011, 9:07 PM

Created attachment 9610
add rendering of this issue after the recent librsvg update

Attached:

Reduced the remaining problem to the usage of

<tspan x="186.25751 191.67688 196.19438 202.06062 206.57813" y="326.65219">Power</tspan>

Converting the x coordinate from a list of coords to a single coordinate makes the text element positioned properly in the png render:

<tspan x="186.25751" y="326.65219">Power</tspan>

This issue has not been filed upstream yet.

  • This bug has been marked as a duplicate of bug 33245 ***
Gilles moved this task from Untriaged to Done on the Multimedia board.