title: CATextLayer/NSAttributedString - Determine exact size of the shown text
body: <p>I've got a CATextLayer with an NSAttributedString and I want to calculate the exact size of the visible/drawn text.</p>
  
  <p>I have tried this:
  <a href="http://www.taffysoft.com/pages/20120202-01.html" rel="nofollow">http://www.taffysoft.com/pages/20120202-01.html</a></p>
  
  <p>But it gives the same result for the string "1" and "5", even if with my test font (AvenirNextCondensed) those two are cleary not the same width.</p>
  
  <p>How can I calculate the exact size of the visible text?</p>