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

John Coppens <[email protected]>
Newsgroups gmane.comp.gnome.print
Message-ID <[email protected]>
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.

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
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.