
On Fri, Apr 22, 2005 at 12:05:11PM +0200, Joakim Hove wrote:
Dear inkscape developers,
I have an application, which produce some figures. I have considered using svg (partly to learn), but instead of actually coding the necessary svg strings directly in the source of my application, I would like to employ a somewhat higher level library. I.e. instead of
fprintf(svg_stream , "<path id="%s" fill="%s" ....>\n",id,fill_type);
I would like to do (using a hypothetical svg library):
svg_path(svg_object , id , fill_type);
Now, my question is whether Inkscape has (i.e. is built on) a library which somehow provides this functionality; or if you have another library to recommend which would provide this kind of functionality.
As you can see from the code snippets above my language of choice(?) is C, so it must be something which can be linked from C.
There are parts in Inkscape for doing things like that but it's not well separated from Inkscape itself in a standalone fashion. You may find it useful to look at Cairo or librsvg; I don't know if they have exactly what you need but they're nicely stand alone systems and in pretty widespread use (i.e., are in GNOME).
Our longer term plan is to switch our renderer to Cairo so we like to encourage people to try that library out for that reason. ;-)
Bryce