truncation string is not working reliablely with NSLineBreakByTruncatingTail
Test case:
Apply the following patch to the Kittens example:
--- /Users/wangyue/Downloads/AsyncDisplayKit-master/examples/Kittens/Sample/KittenNode.mm 2016-08-25 10:03:06.000000000 -0700
+++ Sample/KittenNode.mm 2016-08-25 13:00:22.000000000 -0700
@@ -98,8 +98,12 @@
// lorem ipsum text, plus some nice styling
_textNode = [[ASTextNode alloc] init];
+ _textNode.truncationMode = NSLineBreakByTruncatingTail;
+ _textNode.maximumNumberOfLines = 2;
_textNode.attributedString = [[NSAttributedString alloc] initWithString:[self kittyIpsum]
attributes:[self textStyle]];
+ _textNode.truncationAttributedText = [[NSAttributedString alloc] initWithString:@"\u2026 More"
+ attributes:[self textStyle]];
[self addSubnode:_textNode];
// hairline cell separator
See the first node in the following screenshot.

OK it seems ASDK calculate the truncation point either too early or too late. When using NSLineBreakByTruncatingTail, seems the line truncates too late. When using without, it happens too early. In a few cases two or three more words can be crammed to the last line, but ASDK just truncate a lot earlier.
I have the same problem, It seems the line truncates too late, When using NSLineBreakByTruncatingTail and truncates too early when using NSLineBreakByWordWrapping.
Also when NSLineBreakByTruncatingTail breaks the line too late, it displays default truncate message instead of truncationAttributedText or additionalTruncationMessage.
Do you have any solution @Yue-Wang-Google ?
@appleguy Could you please take a look at this issue?
I'm also using .ByTruncatingTail. I'm adding an NSLinkAttributeName to the truncationAttributedText in order to get taps in textNodeTappedTruncationToken() in my delegate. It works perfectly if there are also linked URLs in the attributedText (with NSLinkAttributeNames). The token is consistently absent if there are no linked URLs in the attributedText. It just trails off with an ellipsis, not the specified truncationAttributedText, like the first cell in the image above.
Related Issue: #1284
@Adlai-Holler can you take a stab at figuring out if we can fix this in the 2.0 milestone?
This issue was moved to TextureGroup/Texture#142