I am trying to change kerning to a pair of SKLabelNodes. I tried using some kind of code from another answer:
NSMutableAttributedString *attributedString;
attributedString = [[NSMutableAttributedString alloc] initWithString:@"Please get wider"];
[attributedString addAttribute:NSKernAttributeName value:@5 range:NSMakeRange(10, 5)];
[self.label setAttributedText:attributedString];
This is not allowed:
[myLabelNode setAttributedText:attributedString]
And this does not tolerate the changes I made:
myLabelNode.text = attributedString.string;
Can kerning be changed to SKLabelNode?
source
share