• 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: Finding the height of a piece of text
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Finding the height of a piece of text


  • Subject: Re: Finding the height of a piece of text
  • From: Jerry Krinock <email@hidden>
  • Date: Fri, 23 Nov 2007 07:00:12 -0800

Here we go again...

On 2007 Nov, 22, at 16:56, Vincent Coetzee wrote:

There is a piece of code in the "Text Layout Programming Guide"
that shows how to do this....[but] the
height that I calculate is always too small (by about ~1 line
height). Does anyone have a working solution to this problem

Please file a Bug Report to Apple. Tell them it is a duplicate of bug 5291163, which has a nice demo project. Supposedly if more people complain it is more likely to get attention.


or a more elegant method of solving it ?

I don't see any solution in your code, but I add fudge factors and terms, which is about as in-elegant as you can get. See the message I posted 2 days ago, subject = "number of rows for an attributed string".
_______________________________________________


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: 
 >Finding the height of a piece of text (From: Vincent Coetzee <email@hidden>)

  • Prev by Date: Re: With What does Apple Swizzle the IsA-pointer in KVO?
  • Next by Date: Re: QTMovieLayer and renderInContext:
  • Previous by thread: Re: Finding the height of a piece of text
  • Next by thread: Re: Finding the height of a piece of text
  • Index(es):
    • Date
    • Thread