Re: [Paps-discuss] printing librarian data with paps 0.6.8
Brought to you by:
dov-g
From: Dov G. <dov...@gm...> - 2011-09-19 12:31:57
|
Regarding g_object_unref(), my mistake. I guess my fingers were too trigger happy. Great that it works. Good luck! Dov On Mon, Sep 19, 2011 at 15:23, Matthias Apitz <gu...@un...> wrote: > El día Monday, September 19, 2011 a las 02:50:29PM +0300, Dov Grobgeld > escribió: > > > Hi Matthias, > > > > You are making two mistakes: > > > > > > 1. You don't call cairo_move_to() before drawing the text. This causes > > cairo to move its point to the first position after the bounding box > of the > > strign. > > 2. You use cairo_translate() without using surrounding cairo_save() > and > > cairo_restore() to preserve the global translation matrix. > > Hi Dov, > > I did the mistake because I started from a tutorial sample code in > http://x11.gp2x.de/personal/google/ > the example1.c there used cairo_translate() only and without > cairo_save() and cairo_restore(); > > thanks for the tip; with your code it works now as I expect; one > question: your code does not have anymore > > g_object_unref(layout); > > at the end of rendertext(), why? > > I will move over to next step: Postscript; > Thanks > > matthias > -- > Matthias Apitz > t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 > e <gu...@un...> - w http://www.unixarea.de/ > |