memononen / nanosvg

Simple stupid SVG parser
zlib License
1.71k stars 363 forks source link

No text support? #203

Open Honya2000 opened 2 years ago

Honya2000 commented 2 years ago

So the parser doesn't support text tag ? What the point in this? Each svg I use has text/font.

oehhar commented 2 years ago

Dear Honya, I am sorry for this experience. Please move to another SVG parser. This limmitation is clearly stated in the aims of this project. Be sure to look also to the other limitations of this parser which focuses on speed and simplicity for the drawback of a limitted set of features.

Take care, Harald

asmwarrior commented 2 years ago

I create a sample project to partially support text, see here: asmwarrior/SvgPanel: a wxPanel which can show svg image and simple text labels

wcout commented 2 years ago

@Honya2000: If the SVG is under your control (i.e. you can edit it) you could convert the text into a path to create an SVG that looks the same, but nanosvg can now render it.