[cairo] PostScript Import / Watch File
Behdad Esfahbod
behdad at behdad.org
Mon May 28 17:54:36 PDT 2007
On Fri, 2007-05-25 at 19:10 -0400, Kevin Lynagh wrote:
> 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.
Cairo's PS output is quite readable.
behdad
>
> 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
>
>
> _______________________________________________
> cairo mailing list
> cairo at cairographics.org
> http://cairographics.org/cgi-bin/mailman/listinfo/cairo
--
behdad
http://behdad.org/
"Those who would give up Essential Liberty to purchase a little
Temporary Safety, deserve neither Liberty nor Safety."
-- Benjamin Franklin, 1759
More information about the cairo
mailing list