UITextView ignores minimum/maximum line height in attributed string

Originator:kemenaran
Number:rdar://13897810 Date Originated:15-May-2013 11:31 AM
Status:Open Resolved:
Product:iPhone SDK Product Version:6.0
Classification:Serious Bug Reproducible:Always
 
This is a duplicate of rdar://12863734

Summary:

If an attributed string contains both a font attribute as well as a paragraph style attribute that sets minimum/maximum line height those line height constraints are ignored.

Steps to Reproduce:

Create an attributed string that contains a font and paragraph style attribute. Make sure the paragraph style attribute sets a minimum and maximum line height that is less than the font line height.
Set this attributed string on a UITextView's attributedString property.

Expected Results:

The lines should be spaced by the amount of the specified minimum/maximum.

Actual Results:

The lines are spaced as they would be without the paragraph style settings.

Regression:

UITextView only supports attributed strings since iOS 6. Since then this is broken.

Notes:

The problem seems to result if you have multiple different fonts, like when you have some bold or italic text in the string.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!