I'm drawing text using the lower-level parts of the text system - specifically I end up with a call to NSLayoutManager's - drawGlyphsForGlyphRange:atPoint:

All is well when I'm drawing directly to the real screen, but at certain times I cache my output offscreen in an NSPDFImageRep and/or a CGLayer. In both cases the text output gets inverted on a per-line basis - i.e. the whole block is the right way up but each line is upside-down.

Any ideas what I need to do to make the layout manager do the right thing?

I should mention that when drawing to the screen I do use a flipped view, and when building these caches I don't attempt any additional flipping - when the caches are drawn to the flipped view they come out the right way up for all objects as I need them to, except for text.


tia, Graham
_______________________________________________

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 [EMAIL PROTECTED]

Reply via email to