Re: Setting the origin of a GC and Text
Re: Setting the origin of a GC and Text
- Subject: Re: Setting the origin of a GC and Text
- From: Douglas Davidson <email@hidden>
- Date: Mon, 7 Jul 2003 08:56:27 -0700
On Sunday, July 6, 2003, at 08:25 PM, Jim Crafton wrote:
If I draw text (using the advice of the Apple docs which say that using
NSLayoutManager and friends is ultimately the most efficient way to do
it), and reduce the bounding box of the NSTextContainer it wraps the
text from bottom to top, i.,e. each line is progressively *higher* than
the next due to the bottom left default origin (which really strikes me
as being rather dumb, but whatever).
So I need to know how to deal with this - any advice would be greatly
appreciated. I tried the following (in my experiment NSView subclass's
drawRect())
Look up "flipped" views. Make your view flipped. The text system
generally assumes that the views it is dealing with will be flipped.
Douglas Davidson
_______________________________________________
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.