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

Here everybody can post his problems with PhotoLine
maho
Mitglied
Beiträge: 94
Registriert: So 18 Mai 2003 02:02

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

Beitrag von 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: Alles auswählen

<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:

Bild
Martin Huber
Entwickler
Entwickler
Beiträge: 4159
Registriert: Di 19 Nov 2002 15:49

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

Beitrag von 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
Beiträge: 94
Registriert: So 18 Mai 2003 02:02

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

Beitrag von maho »

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