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: "Alastair J.Houghton" <email@hidden>
- Date: Mon, 7 Jul 2003 10:33:08 +0100
On Monday, July 7, 2003, at 04:25 am, Jim Crafton wrote:
I am a bit stumped at the moment:
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())
There is a Quartz function, CGContextSetTextMatrix() that might help
you here; I can't see a Cocoa equivalent anywhere. See
http://developer.apple.com/documentation/GraphicsImaging/Reference/
Quartz_2D_Ref/index.html for more information.
Kind regards,
Alastair.
_______________________________________________
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.