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

"Andreas J. Guelzow" <[email protected]>
Newsgroups gmane.comp.gnome.print
Organization Taliesin Software
Message-ID <[email protected]>
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
> [email protected]
> http://mail.gnome.org/mailman/listinfo/gnome-print-list
-- 
Prof. Dr. Andreas J. Guelzow
Dept. of Mathematical & Computing Sciences
Concordia University College of Alberta

_______________________________________________
gnome-print-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gnome-print-list
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQBAxiwtJ1WZh1HYgPsRAlDKAJ9CBgY6C3YkGwc9U13ftxXEmN0yegCgqA1i
hgQElGMweIzIe+fksLnKdr0=
=tF4t
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.