Skip to content

Instantly share code, notes, and snippets.

@typeoneerror
Created December 13, 2011 19:41
Show Gist options
  • Save typeoneerror/1473559 to your computer and use it in GitHub Desktop.
Save typeoneerror/1473559 to your computer and use it in GitHub Desktop.
NSMutableAttributedString *attrStr = [NSMutableAttributedString attributedStringWithString:@"Text to kern"];
[attrStr addAttribute:(NSString *)kCTKernAttributeName
value:[NSNumber numberWithInt:-1]
range:NSMakeRange(0, [attrStr length])];
[self.introLabel setAttributedText:attrStr];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment