开发者

Custom font doesn't work in interface builder!

I've downloaded a font that's called "aldo the apache (.tff) " from dafont.com.

I used it with differ开发者_如何学编程ent programms like adobe illustrator and it seemed to work just fine.

Recently i tried to use it in a game that i'm making to experement. It didn't work -_-.

IB was displaying the font as a slightly bigger version of arial.

How can i solve this problem and get the font to display correctly?

If you have any suggestions, please post them down below.

-DD


You have to edit your <appname>-Info.plist file and create a new UIAppFonts key with type array, where each element is a String with the name of your font file, in this case AldotheApache.ttf. Then use the name in IB or with UIFont as it shows in the application Font Book app of your Mac, in your case Aldo the Apache. Obviously the font should also be added as a resource of your project.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜