c-koi/libboard

Create SVG file from string object

OriBibi opened this issue · 1 comments

Does your library support the ability to get a string and create SVG file from it? after that i need to insert the svg element to buffer.

Like this:

SVG doc;
doc.loadByString("<svg><text x='0' y='15' fill='red'> SVG </text></svg>"));

//now, doc include  SVG file

Bitmap buffer= doc.data();

//now, buffer contain svg file 
c-koi commented

No.