Greetings. I experiment with svg and run into a problem. Text is used to place text by dividing lines by tspan and is not clear. what you need to apply. Something when importing to .svg , the text turned into a vector set of points. Attached an example for convenience:

 <svg height="200" width="200" style=" font-family:arial; background: #3aaf72;"> <text id="subtext" class="subrow" x="102" y="42" fill="#D95974" text-anchor="middle" style="font-size: 36px;"> <tspan style="font-style: italic; text-transform:uppercase;" x="103.24" text-anchor="middle" y="33.24">LOrum</tspan> <tspan style="font-style: italic; text-transform:uppercase;" x="103.24" text-anchor="middle" y="79.24">dolorum</tspan> </text> <text id="maintext" class="mainrow" x="100" y="40" fill="white" text-anchor="middle" style="font-size: 36px;"> <tspan style="font-style: italic; text-transform:uppercase;" x="100" text-anchor="middle" y="30">LOrum</tspan> <tspan style="font-style: italic; text-transform:uppercase;" x="100" text-anchor="middle" y="76">dolorum</tspan> </text> </svg> 

  • one
    @Yuri - why did you remove the snippet? - Igor
  • @Igor, sorry, automatic :) - Yuri
  • Why convert? - Qwertiy
  • I think only in the editor. On js something is doubtful. - Qwertiy
  • @Qwertiy Suppose for plotting on a plotter, the plotter cannot in the text and works only with coordinates - Happy_Cougar

1 answer 1

You can convert to server side curves if you can install additional software. It is necessary to put Inkscape (he has the ability to access the command line). The command to convert text to curves will look something like this:

 inkscape -f INPUT.svg --export-plain-svg=OUTPUT.svg --export-text-to-path 

It can be run, for example, through exec()