CTFramesetter plus NSParagraphStyle plus unicode 2028 == fail
| Originator: | amorya | ||
| Number: | rdar://28693268 | Date Originated: | 10-Oct-2016 01:01 PM |
| Status: | Open | Resolved: | |
| Product: | iOS | Product Version: | 10.0 |
| Classification: | Other Bug | Reproducible: | Always |
Summary: I want to insert a soft line break in my text that's being rendered by CTFramesetter, so as to start a new line but not start a new paragraph. I can't. Steps to Reproduce: Make an attributed string that contains a unicode 2028 character. Give it a paragraph style, such as adding some paragraphSpacing. Expected Results: The paragraphSpacing makes the line breaks after newline characters be bigger, but does not make the line break after the unicode 2028 be bigger. Actual Results: The paragraphSpacing applies to both line break characters and the unicode 2028 character. Notes: Enumerating using NSStringEnumerationByParagraphs correctly identifies that the 2028 character is not a paragraph break. It seems to be only CTFramesetter that has the issue.
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!