Clipping text from NSLayoutManager
Clipping text from NSLayoutManager
- Subject: Clipping text from NSLayoutManager
- From: Thomas Dingler <email@hidden>
- Date: Fri, 2 Mar 2007 08:40:34 +0100
Hi,
I want to clip my drawing area using CGContextClipToRect. This work
very well on NSImage, CIImage, NSRectFill and so on.
But it does not work if I want to clip my text output, that is drawn by
[layoutmanager drawGlyphsForGlyphRange:glyphRange atPoint:origin];
The text will be drawn ignoring the clipping rect.
Any ideas?
Greetings,
Thomas Dingler
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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