Cached text output is flippin' flipped!
Cached text output is flippin' flipped!
- Subject: Cached text output is flippin' flipped!
- From: Graham Cox <email@hidden>
- Date: Tue, 6 May 2008 09:43:42 +1000
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 (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