Re: text orientation/positioning with layout manager
Re: text orientation/positioning with layout manager
- Subject: Re: text orientation/positioning with layout manager
- From: Aki Inoue <email@hidden>
- Date: Tue, 1 Feb 2011 15:36:18 -0800
Probably my choice of word, "compensate", caused a little misunderstanding. 8-)
The Text System does generally assume the coordinate to be flipped.
Since the font rendering follows the graphics state, you get the text rendered up side down if you don't apply the inverted text matrix in the flipped coordinate system.
So, the automatic text matrix inversion is for rendering correctly in the flipped coordinate, not for non-flipped coordinate.
Aki
On 2011/02/01, at 14:14, David F. wrote:
>
> On Feb 1, 2011, at 1:38 PM, Aki Inoue wrote:
>
>> What the Text System does is to apply an inverted text matrix to compensate the flipped CTM automatically (inside -[NSFont setInContext:]) so that the text is rendered correctly regardless of the rendering context flippedness.
>
> 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.
>
> To me, this seems like a mis-feature.
>
> David
>
_______________________________________________
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