Problem: Glyps get drawn outside Line Fragment Rect.
Problem: Glyps get drawn outside Line Fragment Rect.
- Subject: Problem: Glyps get drawn outside Line Fragment Rect.
- From: chaitanya pandit <email@hidden>
- Date: Sat, 12 Jul 2008 11:19:01 -0400
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 (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