Custom font for iPad - iOS 3.2 isn't working

你离开我真会死。 提交于 2019-12-02 08:27:27

How are you setting the font?

You need to use it as follows....

UIFont *myCustomFont = [UIFont fontWithName:@"font1" size:30];

The solution ended up being to use a different font. I opened the font with FontForge and got this warning:

This font is marked with an FSType of 2 (Restricted License). That means it is not editable without the permission of the legal owner.

This seems to be the cause of my issues. I downloaded a free version of the font I was trying to use (luckily it was available for free) and everything started working perfectly.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!