Re: Don't understand PS <-> gnomeprint - More



On Tue, 2004-06-08 at 14:35, John Coppens wrote:
> Me again - no solution yet, more strangeness:
> 
> Please correct me if I'm wrong - I've seen a remark somewhere 'To get a
> Postscript manual to understand gnome-print use', so I'm following this
> advice.

Have a look at the source:
gnome_print_setrgbcolor does not do anything if the current colour is
already equal to the requested colour.

If the colour is different it changes the colour of the current context.

Andreas


> 
> In a loop, I generate a lot of labels, repeating the following code:
> 
>   print_setrgbcolor(prt_last_font_color);
> 			( generates a gnome_print_setrgbcolor )
>   gnome_print_gsave(gpc);
>   gnome_print_translate(gpc, chrad * x, chrad * (y + 1));
>   gnome_print_rotate(gpc, angle * 180 / M_PI);
>   gnome_print_moveto(gpc, size/8, size/8);
>   gnome_print_show(gpc, str);
>   gnome_print_grestore(gpc);
> 
> 
> The generated PS code is:
> 
> q					<-- extra gsave, so my
> 					gnome_print_gsave isn't
> 					really necessary?
> q
> [1.73566e-16 2.83465 -2.83465 1.73566e-16 139.735 454.252]cm
> (GnomeUni-Fujiyama2Plain) cvn FF 12 F
> 					<--- setrgbcolor is missing!
> 0 0 m
> (\40\36\41)
> [6.93457 0 3.46875 0 0 0] xyshow
> Q
> Q					<-- extra grestore.
> 
> q
> q
> [1.73566e-16 2.83465 -2.83465 1.73566e-16 174.094 454.252]cm
> (GnomeUni-Fujiyama2Plain) cvn FF 2 F
> 1 0.376 0.376 rg
> 0 0 m
> (\40\36\42)
> [1.15576 0 0.578125 0 0 0] xyshow
> Q
> Q
> _______________________________________________
> gnome-print-list mailing list
> gnome-print-list gnome org
> http://mail.gnome.org/mailman/listinfo/gnome-print-list
-- 
Prof. Dr. Andreas J. Guelzow
Dept. of Mathematical & Computing Sciences
Concordia University College of Alberta

Attachment: signature.asc
Description: This is a digitally signed message part



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]