Attributed label gets truncated when using non-Latin scripts and AutoLayout
Opened this issue · 1 comments
runnersaw commented
When using non-Latin scripts (such as Arabic or Chinese), NIAttributedLabel's text can be truncated when using AutoLayout to let the label size itself.
To reproduce, constrain an NIAttributedLabel instance so that it's width is specified (i.e. to the left and right of the screen), and so that its height is unspecified (i.e. only to the top of the screen). When the NIAttributedLabel's text is Arabic, the text will be truncated.
natewilliford commented
Also seen this with Latin script for longer strings. Certain screen sizes show as truncated. Seems to be that NIAttributedLabel renders slightly larger than a UILabel with the same font. I wonder if it's being measured as a UILabel, but once rendered as a NIAttributedLabel it won't fit.