Re: text orientation/positioning with layout manager
Re: text orientation/positioning with layout manager
- Subject: Re: text orientation/positioning with layout manager
- From: Kyle Sluder <email@hidden>
- Date: Tue, 1 Feb 2011 14:28:35 -0800
On Tue, Feb 1, 2011 at 2:14 PM, David F. <email@hidden> wrote:
> Aki, is it really a good idea for the text system to automatically apply an inverted text matrix? The text is *not* rendered correctly just by applying an inverted text matrix to the font: for example, underlines and strikethroughs aren't drawn correctly if the context isn't flipped.
I think one of the biggest misunderstandings is that -isFlipped does
not actually dictate the flippedness of the graphics context. If a
graphics context returns YES from -isFlipped, all that means is that
the caller may presume that a flip has been applied to the CTM.
The layout manager uses this hint to determine if it needs to flip the
context its drawing context for the glyphs.
--Kyle Sluder
_______________________________________________
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