unicode data with custom font doesn't work properly in ipad
Posted
by
David Ohanyan
on Stack Overflow
See other posts from Stack Overflow
or by David Ohanyan
Published on 2012-08-30T21:20:10Z
Indexed on
2012/08/30
21:38 UTC
Read the original article
Hit count: 289
I am using custom font for label and string which I am getting from unicode characters. And the font is not changing. here is the snippet of my code:
NSString* str = @"\u05D0\u05D1\u05D2";
[mMatchingLabel setText:str];
mMatchingLabel.font = [UIFont fontWithName:@"David New Hebrew" size:26];
But when I write for example :
NSString* str = @"label"; [mMatchingLabel setText:str];
mMatchingLabel.font = [UIFont fontWithName:@"David New Hebrew" size:26];
The font effect is evident.
Can someone explain what's here wrong?
© Stack Overflow or respective owner