Hi

as i have seen you on the librsvg list, just a point. Librsvg is not based on 
GTK, it is based on GLib :) It is less heavy, and as you have seen in the 
answer, it is not difficult to get it to work. (mostly getting the buffer from 
the library and then write the buffer to the CL_Surface) As you say the main 
problem is that you have to have a few libraries installed.
I have been trying to think of a way to integrate a SVG target in Clanlib, but 
one reason stopped me from using librsvg : too many libraries, not necessarily 
portable enough to Win32 or possibly other platform.
I have been looking at AGG which has a very simple SVG viewer and another more 
specialized library based on SVG. But this library is far from being as 
advanced as librsvg, but it is a unique library, and relatively small.

Julien "Emilie" Laffray

> 
> Hi,
> 
> Here you have my first try to support SVG maps. The example only display
> a black circle in a GTK+ window. That was difficult for me because I
> don't know Gdk and Gtk API.
> 
> librsvg depends on GTK+. I think that most of linux users have gtk libs
> installed, no ? And, if we choose to use GTK+, we HAVE TO use Pango to
> draw text because Pango KICKS ASS ;-) (support vectorial fonts with very
> nice anti-aliasing, support UTF-8, should support bi-directionnal text
> (Arabic), etc.)
> 
> Pango is a very good lib to fix our charset and fonts problems ;-)
> Wormux in Chinese ? NO PROBLEM ! (I know a chinese girl who can
> translate to po files)
> 
> I'm using GTK 2.0 and librsvg 2.0.
> 
> So, do you agree to use GTK+ and librsvg ?
> 
> Note: I'm not sure that integration of GTK+ in ClanLib will be easy.
> 
> Bye, Haypo
> -- 
> Victor STINNER, étudiant à l'UTBM
> http://www.wormux.org/fr/ : Jeu libre dont je participe au développement
> 
> 
<< librsvg-example.tar.gz >>


Répondre à