Reputation: 11
Which is the font style used in NSFont to create alignment/space between characters?
I tried doing with this code, but not able to align the characters.
NSFont *font=[NSFont fontWithName:@"TimesNewRomanPSMT" size:15.0 ];
[textview setFont: font];
Please specify the font style name which suits the above mentioned problem.
Upvotes: 0
Views: 262
Reputation: 18470
What about trying fontspace and pick the font you want.
And if you are looking to adjust the space between characters in a UILabel
you can use:
@property(nonatomic) BOOL adjustsLetterSpacingToFitWidth;
Edit: Above code for ios.
Upvotes: 1