Core Text Justified Alignment Breaks Arabic Words
| Originator: | mattswell | ||
| Number: | rdar://9794634 | Date Originated: | 18-Jul-2011 04:39 PM |
| Status: | Closed | Resolved: | |
| Product: | iOS | Product Version: | All |
| Classification: | Other Bug | Reproducible: | Always |
Summary: Arabic words are broken when drawn with Core Text using the Justified text alignment (kCTJustifiedTextAlignment). Justified words in arabic seem to insert the tatweel character (unicode 0x0640) at the wrong height, breaking words. Steps to Reproduce: Use core text to display arabic text, using justified text alignment kCTJustifiedTextAlignment Expected Results: Correctly justified text with unbroken words Actual Results: Correctly justified text with broken words. Regression: This was tested on 4.3.x as well as 5.0 beta 3. Notes: http://cl.ly/8XxT Sample project demonstrating the word breakage. The most easily recognized broken word is the second to last word on the first line. The alif should be connected, but is disconnected due to the broken elongation with the tatweel character.
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!
You need to set kCTKernAttributeName for the text.