Re: Cocoa Text System: How to determine the caret position?
Re: Cocoa Text System: How to determine the caret position?
- Subject: Re: Cocoa Text System: How to determine the caret position?
- From: Mike Ferris <email@hidden>
- Date: Sun, 29 Jun 2008 10:01:57 -0700
I know that text along a path was done by someone in the past.
Basically the strategy was:
- let the text system lay out the text on a straight baseline (one
long line)
- do the glyph drawing on your own along your path
Of course, spacing needs to be tightened/loosened depending on the
curvature at the display point, for best results.
But at least you let the NSLayoutManager do the heavy lifting of
getting the basic layout right.
This approach would also be more complicated if you needed to provide
editing in-place of the text along the path.
As Doug says, vertical text is a bigger problem if you mean it in the
sense of scripts that are traditionally written top to bottom.
Mike Ferris
_______________________________________________
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