1

I have problem with custom fonts SFUIDisplay and Montserrat. I have done exactly what you should do:

1.Added Font to Info.plist

2.Added Font to Copy Bundle Resources section in Build Phases.

What I have exact problem is set font gives proper output in storyboard but when I run project, custom font "size" will not reflect on simulator nor on device.What is the problem I did not able to find I had face such issue first time.Please suggest what was I doing wrong.

Guys now I get actual issue is Font size is not displayed properly even I set system font with size 50, simulator display random size.

Drashti
  • 63
  • 6
  • What name you are using in your code to apply fonts? – Ankit Jayaswal Apr 02 '18 at 10:44
  • @AnkitJayaswal I set font through storyboard and not programmatically as it will increase my efforts and time. – Drashti Apr 02 '18 at 10:55
  • For reference - can go through this link: https://codewithchris.com/common-mistakes-with-adding-custom-fonts-to-your-ios-app/ – Ankit Jayaswal Apr 02 '18 at 11:04
  • @AnkitJayaswal Thank you for link, I had already performed all 5 steps correctly although my simulator not display correct font don't know what is issue!!!!!!! – Drashti Apr 02 '18 at 11:08
  • Below link might be useful to you https://stackoverflow.com/a/40170579 – Rajesh Dharani Apr 02 '18 at 11:14
  • Hey Guys thank you for your kind help I tried everything you suggest but let I elaborate my issue again that is whatever custom font type I was trying to set will easily displayed on storyboard(any font changes also reflect easily on storyboard) but when I hit run command and run on any ipad devices(my app is for Ipad devices only) It will not showing font I set – Drashti Apr 03 '18 at 06:01
  • @Drashti Hi! did you resolve your issue? – zo_chu Oct 11 '18 at 07:41
  • @zo_chu Yes, I resolved it. There was one common function file where exact same **setfont** method created which override my all custom fonts into a native font. – Drashti Oct 11 '18 at 10:00

0 Answers0