memononen / nanosvg

Simple stupid SVG parser
zlib License
1.69k stars 358 forks source link

Embedding and simple class, visible handling #120

Open rzaumseil opened 6 years ago

rzaumseil commented 6 years ago

I have made some changes to configure functions scope, used malloc, realloc and free functions. And I have started on the keywords class and visible. I have the diff's as text files. nanosvg.patch.txt nanosvgrast.patch.txt

SergeySlice commented 6 years ago

This is wrong addition

*** 340,345 ****
--- 357,363 ----
        } else if (*s == '>' && state == NSVG_XML_TAG) {
            // Start of a content or new tag.
            *s++ = '\0';
+           nsvg__parseContent(mark, contentCb, ud);
            nsvg__parseElement(mark, startelCb, endelCb, ud);
            mark = s;

Nonetheless