> When standard text lays out with underlining, the underline is  
> interrupted around descenders, which is nice. Unfortunately my  
> underlining code doesn't do this, and I can't see a simple way or layout 
> manager delegate method I could use to figure out where the breaks should 
> go. Is there somewhere else I should be looking, or is there no public 
> method to help here? If the latter, any ideas on how I could figure out 
> the break positions? All I need is a list of offsets relative to the line 
> fragment rect where the breaks are.

You can draw the underline first, then a large point-width stroke in
NSClearColor in copy compositing mode (or alternatively, the wide stroke
& fill used as a negative mask), then the actual fill on top.

-Ben
_______________________________________________

Cocoa-dev mailing list ([email protected])

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