[PATCH 1/2] print: Use cairo_save/cairo_restore to manage temporary cairo changes

Dirk Hohndel dirk at hohndel.org
Sat Feb 2 11:59:29 PST 2013


Salvador Cuñat <salvador.cunat at gmail.com> writes:
> Carl's way is, off course, the correct way, and we can get rid of the
> dammned back translations.
>
> His corrections made fail the alineation in the next prints, and attached
> is a patch to fix it.
>
> I'll look how to change the whole print.c with the pango_get_extents
> function.

That would be great!

> Think have read you talking about a week and a half (or so) to jump to
> 3.0.  

Yes - the goal was to release it by mid February

> I mention not only for this, but because I've been thinking on
> passing some parameters to draw_page from print_dialog_apply with something like:
>
> typedef struct _Print_params {
> 	int rotation, dives;             rotation as 1/0 (boolean)
> 	double w_scale, h_scale;
> 	} Print_params;
>
> Then using this params to have a single draw_page which can manage 1 to n
> prints per page, rotate counterclockwise the layout to plot two dives in
> the actual size (or A5 why not?), or even have an only A4 (gargantuan)
> print, if the user likes to print to .pdf and manage the file whith,
> say, acrobat reader.

That sounds extremely nice!

> As a side efect, the fact of passing the scale factors would let us
> manage the font scaling in a automated layout basis (bigger fonts for
> bigger layouts).

Even better.

How long do you think this would take you?

I am willing to take these patches as long as they don't introduce new
strings that need to be translated.

/D


More information about the subsurface mailing list