On Mon, Feb 02, 2009 at 06:09:51PM -0000, MacArthur, Ian (SELEX GALILEO, UK) 
wrote:
> 
> 
> > Hovewer libplot is really old and only permits to specify a 
> > few postscript and PCL font, so i think i will 
> > switch library for a recent one, i was thinking cairo+pango.
> 
> OK - that can work.
> 
> For what it is worth, I have an application that uses fltk to render
> it's on-screen displays, but also has a "cairo" mode (it is easy in fltk
> to get a suitable window context from a fltk widget to use to create a
> cairo surface to draw into...)
> Now, the fltk rendering is much quicker (and at least on OSX/quartz
> which is anti-alised anyway) the two outputs look very similar.
> 
> So - why did I bother, if it just looks the same? Well, the answer is
> that the cairo context allows me to render the scene directly to a PDF
> file... Something like that might work well for you?

Well i think it should works well!  In fact i use libplot to "export" a 
chemical structure formula from ram memory to 
(primarly) a postscript file. Postscript is the preferred format because it 
integrates well with latex and some
scientific magazine are happy to get the image for a paper in postscript...

I was looking around at the documentation of cairo and it have a postscript and 
 PNG backend...that's exactly what i 
need!

Moreover i think i can remap the libplot's functions my application call with 
the cairo's ones easily as i use a 
singleton for a "plotter" object that is used by the rendering function...so i 
think i can just make the singleton a 
cairo's surface pointer ...what i find frustrating is that the pango 
documentation appear a little bit dispersive.

I think this will require a lot of work however! :-( 

Bye!
C.

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to