I have an SVG path (I think it's SVG) like so M1368.8,542.2v11.6v19.3h66.9v11.6v15.6h24.9v-15.6h7.1v-11.6h74.9v-19.3v-11.6v-9.5v-21.4 h-91.8h-82v21.4V542.2z M1457.7,542.2v11.6h-6.9v-11.6H1457.7z
.
I need to convert it on the fly to polygon coordinates like x,y,x1,y2,x3,y3...
and It has to be PHP script.
I had no luck finding any working library, and also I am not sure how to do this myself, because SVG paths tends to be more complicated than simple coordinates (Bézier curves etc.).
Furthermore, I don't know if it would work without some advanced integral-like math magic