UITextView ignores minimum/maximum line height in attributed string
||Date Originated:||Dec 12th, 2012|
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.
The lines should be spaced by the amount of the specified minimum/maximum.
The lines are spaced as they would be without the paragraph style settings.
UITextView only supports attributed strings since iOS 6. Since then this is broken.
The problem seems to result if you have multiple different fonts, like when you have some bold or italic text in the string.
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!