[cairo] PostScript Import / Watch File

Kevin Lynagh klynagh at gmail.com
Fri May 25 16:10:04 PDT 2007


I'll probably end up doing that --- drawing with Cairo operators. If the
Cairo PostScript output is human readable, I'll use it, but it has been my
experience that most generated PostScript/EPS is very garbled so if that's
the case I'll just mirror the code in raw PostScript and only use Cairo
for the GUI and let my program generate the final output.

I've been looking into using Common Lisp for the GUI, but I'm not sure how
easy it will be to integrate GTK (I'm using cells-gtk) with Cairo (I haven't
looked into it much, but there appears to be a few lisp wrappers) and end up
with anything remotely portable --- I'm hoping for this to be useable on OS
X and *nix without too much hassle. Thanks for the suggestions!

Kevin

On 5/25/07, Carl Worth <cworth at cworth.org> wrote:
>
> 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 --------------
An HTML attachment was scrubbed...
URL: http://cairographics.org/archives/cairo/attachments/20070525/11f4c126/attachment.htm 


More information about the cairo mailing list