title: CTFramesetterSuggestFrameSizeWithConstraints sometimes returns incorrect size?
body: <p>In the code below, <code>CTFramesetterSuggestFrameSizeWithConstraints</code> sometimes returns a <code>CGSize</code> with a height that is not big enough to contain all the text that is being passed into it. I did look at <a href="https://stackoverflow.com/questions/2707710/core-texts-ctframesettersuggestframesizewithconstraints-returns-incorrect-size">this answer</a>. But in my case the width of the text box needs to be constant. Is there any other/better way to figure out the correct height for my attributed string? Thanks!</p>
  
  <pre><code>CTFramesetterRef framesetter = CTFramesetterCreateWithAttributedString(attributedString);
  CGSize tmpSize = CTFramesetterSuggestFrameSizeWithConstraints(framesetter, CFRangeMake(0,0), NULL, CGSizeMake(self.view.bounds.size.width, CGFLOAT_MAX), NULL); 
  CGSize textBoxSize = CGSizeMake((int)tmpSize.width + 1, (int)tmpSize.height + 1);
  </code></pre>