• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Cocoa Text System: How to determine the caret position?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Cocoa Text System: How to determine the caret position? (From: "Yung-Luen Lan" <email@hidden>)
 >Re: Cocoa Text System: How to determine the caret position? (From: Graham Cox <email@hidden>)
 >Re: Cocoa Text System: How to determine the caret position? (From: Douglas Davidson <email@hidden>)
 >Re: Cocoa Text System: How to determine the caret position? (From: Graham Cox <email@hidden>)
 >Re: Cocoa Text System: How to determine the caret position? (From: Douglas Davidson <email@hidden>)

  • Prev by Date: DnD in NSMatrix
  • Next by Date: Clock-like looping
  • Previous by thread: Re: Cocoa Text System: How to determine the caret position?
  • Next by thread: NIB Help
  • Index(es):
    • Date
    • Thread