[cairo] PostScript Import / Watch File

Carl Worth cworth at cworth.org
Fri May 25 14:08:17 PDT 2007


On Thu, 24 May 2007 09:24:48 -0700, "Kevin Lynagh" wrote:
> Ad far as I can tell, I can either keep recompiling a PostScript file and watch
> it with a gv-like widget (which I'd need to write, god help me) or mirror
> the plot using Cairo and use the command line routines to generate
> PostScript at the end. I'd be grateful for any suggestions.

I don't think there would be any advantage to going from your current
code, through PostScript, then through some not-yet-existing code that
would generate cairo calls from the PostScript content.

That would involve a pile of code that doesn't exist yet, and wouldn't
necessarily be as efficient as you'd like anyway.

So much better would be to just write your code to call cairo itself,
(and as you say, it mirrors the PostScript operators quite well, so it
shouldn't be too difficult).

And once you have that, you might even find that you can throw away
your current PostScript-generating code and let cairo take care of
that part of the problem as well.

Let us know how things go or if you need any further help.

-Carl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://cairographics.org/archives/cairo/attachments/20070525/489fb92e/attachment.pgp 


More information about the cairo mailing list