Very nice! Here is my pirates map as inkscape svg. Too bad that librsvg doesn't support patterns as it seems, the result of your test program with this map is somewhat humbling. Odd... the librsvg wegpage sais is supports patterns since 2.8.0. Maybe it's because it's an inkscape svg? Can't convert it to a normal svg because inkscape crashes when converting. The question is if librsvg is the most advanced svg lib out there at the moment and if other libs could bring up a better result?

I agree with you that the Pango lib is awesome, I'm just wondering if it's possible to use GTK2 in combination with clanlib at all.

Cheers,
Michael Prager

Victor STINNER wrote:

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

image/svg

Répondre à