[gs-devel] Problems using libgs

Albert Astals Cid aacid at kde.org
Mon Oct 29 16:07:20 PDT 2007


Hi, together with some other devels we are building a simple gs library on the 
top of libgs.

We have encountered a drawing problem we don't know how to solve.

A very simple sample code reproducing the problems we get is at 
http://www.tsdgeos.com/gs/main.cpp

The file i use for the test is http://www.tsdgeos.com/gs/fermi.eps

The output image i get is http://www.tsdgeos.com/gs/image.png

I'm wondering what i'm doing wrong since gv seems to be able to render that 
file correctly (the image appears centered) and at "Pixel based" 1:1 zoom 
(for gv that means 72dpi) the "canvas" has a size of 500x500 (like the one 
i'm passing to libgs)

You'll need cairo for compiling the test, i have a Qt based one too, ask if 
you prefer it.

You can compile it with gcc main.cpp -lgs -lcairo -I /usr/include/cairo/

Thanks,
   Albert


More information about the gs-devel mailing list