Re: [Pyobjc-dev] Using Core Graphics
Brought to you by:
ronaldoussoren
From: Greg H. <ghu...@fr...> - 2004-06-03 05:36:03
|
I know this that is why I went to python and CG. I had started it in pure objc but then realised it needed the window server connection. On 03/06/2004, at 3:30 PM, Ronald Oussoren wrote: > > On 3-jun-04, at 7:23, Greg Hulands wrote: > >> Hi, >> I am writing an image renderer in python using the core graphics >> bindings and all the image rendering is working like a charm. The >> problem I have come across is that when I try to render text, the >> methods that are exposed have very limited functionality. What I >> wanted was something like app kits [NSString >> drawInRect:withAttributes:]. I am running the script from a >> webobjects application so there may not be a user logged in. This >> would mean I cannot use the appkit py-objc bridge? > > That's most likely, most of AppKit requires a connection to the window > server. You can always test using some trivial drawing code :-) > > Ronald > -- > X|support bv http://www.xsupport.nl/ > T: +31 610271479 F: +31 204416173 > > |