[Fwd: [wxpython-users] Re: Trying to understand GraphicsPath]
Christopher Barker
Chris.Barker at noaa.gov
Tue Sep 2 11:36:33 PDT 2008
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 :-)
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 at noaa.gov
More information about the wxpython-users
mailing list