In my custom NSTextView i override NSTextContainer's
lineFragmentRectForProposedRect: sweepDirection: movementDirection: remainingRect: method to lay text only in certain parts of the text view, so in this method, i return the line fragment rectangles in which i allow text to be laid.

The problem is that, in certain cases like very large fonts, glyphs are drawn outside the returned line fragment rect. even though the width of the returned line fragment is too small to accommodate the glyph.
How can i prevent this?



_______________________________________________

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