PL does not recognise <tspan> elements within .SVG files

Here everybody can post his problems with PhotoLine
maho
Mitglied
Posts: 80
Joined: Sun 18 May 2003 02:02

PL does not recognise <tspan> elements within .SVG files

Post by maho »

Hello PhotoLiners,

Here's an issue I found yesterday. According to the .SVG specifications, a <tspan></tspan> element allows you to create sub-elements within <text></text> tags. This doesn't seem to be implemented in PL. Here's a simple example (for some reason I can't attach this as a file):

Code: Select all

<svg xmlns="http://www.w3.org/2000/svg" version="1.1">
<text x = "10" y = "25" font-size = "20">
  <tspan>
    e = mc 
    <tspan dy ="-10">2</tspan>
  </tspan>
</text>
</svg>
If you open it in Inkscape, you see the expected result:

Image
Martin Huber
Entwickler
Entwickler
Posts: 3930
Joined: Tue 19 Nov 2002 15:49

Re: PL does not recognise <tspan> elements within .SVG files

Post by Martin Huber »

PhotoLine does support <tspan>, but it doesn't support nested tspans like the one in your example.

I will check that.

Martin
maho
Mitglied
Posts: 80
Joined: Sun 18 May 2003 02:02

Re: PL does not recognise <tspan> elements within .SVG files

Post by maho »

Thanks for your quick response Martin. I will see if I can unnest my tspan tags in my actual image.