title: Multiline text not getting ellipsized
body: <p>I'm trying to draw ellipsized text on multiple lines inside a rectangle.</p>
  
  <p>For <code>NSLineBreakByTruncatingTail</code>, the documentation states</p>
  
  <blockquote>
    <p>The line is displayed so that the beginning fits in the container and the missing text at the end of the line is indicated by an ellipsis glyph. Although this mode works for multiline text, it is more often used for single line text.</p>
  </blockquote>
  
  <p>but with that mode I only get a single line:</p>
  
  <p><img src="https://i.stack.imgur.com/ZgfBS.png" alt="With NSLineBreakByTruncatingTail"></p>
  
  <p>However with <code>NSLineBreakByWordWrapping</code>, I don't get an ellipsis for overlong text:</p>
  
  <p><img src="https://i.stack.imgur.com/uZxz1.png" alt="With NSLineBreakByWordWrapping"></p>
  
  <p>Both pictures use the same code below (red background is the text drawing rectangle) and of course the same rectangle size, so 2 lines should definitely fit.</p>
  
  <pre><code>NSMutableParagraphStyle* paragraphStyle = [[NSParagraphStyle defaultParagraphStyle] mutableCopy];
  paragraphStyle.lineBreakMode = &lt;&lt;see above&gt;&gt;;
  paragraphStyle.alignment = NSTextAlignmentNatural;
  NSDictionary* drawingAttributes = [NSDictionary dictionaryWithObjectsAndKeys:
                                     [UIFont fontWithName:@"HelveticaNeue" size:36],
                                     NSFontAttributeName,
                                     paragraphStyle,
                                     NSParagraphStyleAttributeName,
                                     nil];
  
  const CGRect rect = CGRectMake(...);
  [@"I do not get ellipsized in any way" drawInRect:rect withAttributes:drawingAttributes];
  </code></pre>
  
  <hr>
  
  <p>Is there a way to combine ellipsizing with multiline rendering, as the documentation says? With a UILabel, I would only have to set the number of lines to something other than 1, but what about text rendering via code?</p>