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

Pierre-Yves Chibon pingou at pingoured.fr
Sat Feb 2 09:02:49 PST 2013


On Sat, Feb 02, 2013 at 04:23:15PM +0100, Salvador Cuñat wrote:
> Think have read you talking about a week and a half (or so) to jump to
> 3.0.  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.
> 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).

I was wondering if this would also influence/solve what we face when printing
the dives in different locals (as in "dive" in English takes less space on the
page than "plongée" in French).

Pierre


More information about the subsurface mailing list