Custom Font not working in iOS 5

前端 未结 4 591
被撕碎了的回忆
被撕碎了的回忆 2021-01-16 08:30

I have added Avenir-Next-LT-Pro-Demi-Condensed_5186.ttf font in my resources. Also added the same to Fonts provided by application in my info.p

4条回答
  •  终归单人心
    2021-01-16 09:34

    Follow the steps given below

    1.Make sure when you copy the font the "add to target" check box is checked.

    2.First select your font show in finder and double click on don make sure your font name must be same as like image

    enter image description here

    Here font name is"eurofurence light"

    3.Add font into .plist file

    4.After doing all the things check your font---

     NSLog(@"%@",[UIFont fontNamesForFamilyName:@"Your font"]);
    

    according to font family use Bold and Italic...

    Hope this will help to you

提交回复
热议问题