[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Looking for an SVGDOM / other SVG library for use with C++ and CMake.
From:       Wolthera <griffinvalley () gmail ! com>
Date:       2021-06-10 20:31:26
Message-ID: CAN80MtF_coFnc+DGL8qBBssfAXM8VzHsA_mKf0-zo1m5VD08GQ () mail ! gmail ! com
[Download RAW message or body]

If you are only looking to batch process SVG files without rendering,
you can just use any XML library. QDomDocument is perfectly fine for
most situations. You can do something like setting a Title tag on the
group or path that represents the icon, you can do this in inkscape
via the 'object properties' dialog, and it will add that value as
<title>text</title>  as a child of the XML element represent <g /> or
<path />.

The tricky bit about the SVG spec is getting the rendering right, but
as long as you're not doing that, just use your favourite XML library.


-- 
Wolthera
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic