[Fwd: Re: Trying to understand GraphicsPath]

Nitro wrote:

Yes, I have seen this earlier. Cairo seems to require GTK

no it is the other way around -- GTK requires Cairo. Cairo is the rendering library for GTK, but it can be used quite independently. IN fact, I'm pretty sure it is used for the SVG rendering in the Mozilla project, on all supported platforms.

doesn't come with wxPython on msw. I'm not sure if floatcanvas has much in common with wxPython anymore once we don't use wxGraphicsContext :slight_smile:

well, that's true -- and I really don't want to get into the "multiple back-ends" mess that Matplotlib is in...

Anyway, it should not be too hard to add direct cairo support, since the rendering backends were designed to be switchable.

Maybe someday. Though if Cairo can handle floating point line widths and font sizes, it could be a solution. However, I know it had some related issues a couple years back when I messed with it. One example:

To make an ellipse, you had to make a circle, then apply a transform to it to stretch it -- which is fine, except that the line width got stretched too, which isn't what one would usually want.

Also, I recall that there was talk of building a wxGraphicsContext on Cairo -- I don't know what became of that.

Something to look at with all our copious spare time.

-Chris

路路路

--
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@noaa.gov

Christopher Barker wrote:

Also, I recall that there was talk of building a wxGraphicsContext on Cairo -- I don't know what became of that.

The idea is still being kicked around. Basically it would mean that the wxGraphicsContext backend used for the wxGTK port would become available for all platforms, and there would be a way to explicitly select it instead of the native GC backend for the platform.

P.S. If I'm able to get all the ducks to line up in a nice row I may have a surprise related to this in the next release.

P.S.S How's that for an edge-of-your-seat teaser? :wink:

P.S.S.S Ever tried herding ducks? :slight_smile:

路路路

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!