tspan tags not have been read

XnConvert Multi Platform - Windows, MacOSX, Linux

Moderators: XnTriq, helmut, xnview

Finn
Posts: 4
Joined: Fri Dec 17, 2021 10:30 am

tspan tags not have been read

Post by Finn »

Try to convert SVG files to PNG. One file - good result, other one - bad. Analizing SVG file code and seeing -

good file - every part of text in separate tags "text":

<text class="cls-7" transform="translate(201.93 289.9)">2K</text>
<text class="cls-7" transform="translate(187.06 320.85)">67.00</text>
<text class="cls-7" transform="translate(196.98 258.69)">№1</text>


Got three lines of text in PNG.

bad file - one tag "text" and some tags "tspan" into:
<text class="cls-9" transform="translate(59.23 156.06)">№1
<tspan x="7.01" y="33">1</tspan>
<tspan class="cls-10" x="16.16" y="33">К</tspan>
<tspan x="-10.46" y="66">3</tspan>
<tspan class="cls-11" x="2.54" y="66">7</tspan>
<tspan x="12.73" y="66">.40</tspan>
</text>

and all of this text is in one line in PNG, without space betwwen parts. But when view SVG - three lines of text.

May be there is secret checkbox in settings and xnConverter will do it right? :?: 8)
User avatar
xnview
Author of XnView
Posts: 38788
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: tspan tags not have been read

Post by xnview »

The SVG engine is basic engine, and don't support full format
Pierre.
Finn
Posts: 4
Joined: Fri Dec 17, 2021 10:30 am

Re: tspan tags not have been read

Post by Finn »

It's very sad to hear... :(