[cairo] cairo + librsvg = svg viewer

Luiz Americo Pereira Camara luizmed at oi.com.br
Wed Oct 28 09:19:34 PDT 2009

philipp koehler escreveu:
> Hello,
> I am trying to do the same thing like you (display svg in Delphi-programs using cairo for rendering and librsvg for svg-parsing)and I have 
> exactly the same problem like you.
> I was using the h2pas tool from Lazarus 
> http://wiki.lazarus.freepascal.org/Creating_bindings_for_C_libraries
> to do a header conversion of the librsvg.dll-headers I found on the gnome homepage. Unfortunatly I got stuck because in those header-files there are dependencies which point out of the scope covered by the header-files.
> I was suspecting I had the wrong header files because afaik header-files for dynamic libs should not have outside dependencies except for maybe very basic libaries.
> May be you have advanced a little bit in the problem of converting the librsvg header-files or have found other solutions to display svg in Delphi.

I did that with fpc/Lazarus almost a year ago.

Take a look at 
. You can adapt for Delphi


More information about the cairo mailing list