Created
May 14, 2013 03:14
-
-
Save mathisonian/5573402 to your computer and use it in GitHub Desktop.
ligatures and symbol fonts on ios
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSMutableAttributedString *string = [[NSMutableAttributedString alloc] initWithString:@"camera"]; | |
[string setAttributes:@{(NSString *)kCTLigatureAttributeName:[NSNumber numberWithInt:2]} range:NSMakeRange(0, string.length)]; | |
self.myUILabel.attributedText = string; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment