Re: Unwanted clip of rotated text
Re: Unwanted clip of rotated text
- Subject: Re: Unwanted clip of rotated text
- From: Allan Odgaard <email@hidden>
- Date: Mon, 23 Feb 2004 19:27:23 +0100
On 23. Feb 2004, at 18:58, Erez Anzel wrote:
I want to draw rotated strings into a vertical ruler. But the text
appears to get clipped by the unrotated clipping rect.
I'd be grateful for any solutions, workarounds or hints, such as how to
rotate the clipping rect (which I'll refer to as clipRect). This must
run on Mac OS X 10.2 minimum. [...]
Try to draw something else than text, I am almost certain that this
will be drawn with the correct clip rect -- the problem is in
NSString's drawText, at least I have previously had problems related
with this in relation to clip rects and transformations.
My workaround was not to use NSString's text drawing functions but
instead use ATSU. This is a hell of a lot more code, but it works...
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.