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 (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com