Text wrapping with quotes and parenthesis
| Originator: | gryzlov | ||
| Number: | rdar://21940076 | Date Originated: | 07.22.2015 |
| Status: | Open | Resolved: | |
| Product: | iOS, OS X | Product Version: | |
| Classification: | Reproducible: |
Summary: If a text label has a quote right next to parenthesis, there will be a distinct width, when the quoted text will jump back and forth between current and next line. It also messes up UILabel and -[NSString boundingRectWithSize...] method. The method returns correct width, but UILabel fails to fit that string in that calculated width. Steps to Reproduce: Make an UILabel in Xcode with text: Test text that wouldn't "wrap" (if near parenthesis) Font: Helvetica Neue Light, 15pt Number of lines: 0 Text will fail to correctly fit in a label width around 200px Expected Results: Text should fit into two lines without jumping back and forth. Actual Results: It looks like UILabel wouldn't break quote+space+parenthesis combination. Version: iOS 8.3, OS X 10.10.4 Notes: Bug can be seen in both on iOS and OS X. Configuration: iPhone 6, Macbook Pro Retina 13''
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!