Closed spger closed 4 years ago
Text elements are not implemented.
Currently working on it. It might take time.
Okay, good to know. Thank you
Added : https://github.com/sammycage/lunasvg/commit/785c5b4cf85882b24e470b33f7b550ca6f7b5bb3
#include <lunasvg/svgdocument.h>
using namespace lunasvg;
int main()
{
SVGDocument document;
document.loadFontFromFile("yourfavorite.ttf");
document.loadFromFile("filewithtext.svg");
Bitmap bitmap = document.renderToBitmap();
// do something useful with the bitmap.
return 0;
}
Thank you for reporting this issue.
Hi, I would like to know if is possible read and render Text element from svg file