Search code examples
iosobjective-ciphonefonts

How to use "private use area" fonts in Objective-c


I'm trying to use font icons in my IOS application, I can able to display images from miscellaneous

enter image description here

When i use the below code image is displaying

[Label setFont:[UIFont fontWithName:@"fontello" size:50]]; [Label setText:[NSString stringWithUTF8String:"\u2692"]];

enter image description here

But When i am trying to use code from private user area nothing is displaying

     [Label setFont:[UIFont fontWithName:@"fontello" size:50]];
    [Label setText:[NSString stringWithUTF8String:"\uE756"]];

enter image description here

Can anybody please help me, Thanks in advance!


Solution

  • You have to copy the custom font file to the resources by adding it in the copy files build phase.