cppfw / svgdom

:house: SVG document object model in C++
MIT License
49 stars 17 forks source link

Implement support for <text> element #31

Closed rlitv closed 6 years ago

rlitv commented 6 years ago

It would be nice to have elements in parsed DOM even if they are not supported by svgren, so their presence can at least be checked after parsing.

igagis commented 6 years ago

The <text> element added to svgdom version 0.3.18, the svgren was also rebuilt because of binary incompatibility, so the actual version is 0.4.50. For now it only inserts the <text> element to the DOM tree, but it does not parse any specific attributes of the element. But this should be enough to detect that SVG contains <text> elements. It should be pretty easy to create a custom Visitor for that, but if you have questions, please ask.