• 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: Problem with CircleView Example and NSLayoutManager angles...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with CircleView Example and NSLayoutManager angles...


  • Subject: Re: Problem with CircleView Example and NSLayoutManager angles...
  • From: Douglas Davidson <email@hidden>
  • Date: Thu, 29 Jan 2004 15:59:16 -0800

On Jan 29, 2004, at 2:29 PM, Steve Mykytyn wrote:

As I think I understand it, there's no easy way to get the width of an
individual glyph. Suggestions other than appending that blank to the
end of the string?

Great question! It's good to see somebody looking closely at these things.

To get the right edge of the rightmost glyph in a line, (1) go to the right edge of the used rect, then (2) subtract the container's line fragment padding.

Bonus points to anyone who figures out why I said "rightmost" rather than "last"...

Douglas Davidson
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Problem with CircleView Example and NSLayoutManager angles...
      • From: Sherm Pendley <email@hidden>
References: 
 >Problem with CircleView Example and NSLayoutManager angles... (From: Steve Mykytyn <email@hidden>)

  • Prev by Date: Re: init and dealloc
  • Next by Date: Re: init and dealloc
  • Previous by thread: Problem with CircleView Example and NSLayoutManager angles...
  • Next by thread: Re: Problem with CircleView Example and NSLayoutManager angles...
  • Index(es):
    • Date
    • Thread