Re: NSAttributedString rendering bugs when rendered with Cocoa Text (rdar://6379047)
Re: NSAttributedString rendering bugs when rendered with Cocoa Text (rdar://6379047)
- Subject: Re: NSAttributedString rendering bugs when rendered with Cocoa Text (rdar://6379047)
- From: Douglas Davidson <email@hidden>
- Date: Tue, 18 Nov 2008 12:09:17 -0800
On Nov 18, 2008, at 11:53 AM, Rua Haszard Morris wrote:
I was ensuring that I am _not_ drawing in a flipped context... (!)
now, as you suggest I tried flipping the custom view (override
isFlipped) that the attributed string is drawn in, and note that it
works correctly!
So an improved workaround is to tweak the positioning logic (to
account for the flipped context) instead of tweaking (hacking) the
actual attributes.
I'm still not clear on why this should be the case. Thanks for the
vastly better workaround though..
The text system generally prefers a flipped context, because text
generally runs from top to bottom rather than the reverse. You didn't
post code, so I'm not sure exactly what you're doing, but this is a
good general rule.
Douglas Davidson
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden