Add Custom Fonts In Xcode 4.1

or azran picture or azran · Sep 4, 2011 · Viewed 22.9k times · Source

i want to use custom fonts in y application.

i have declared the "Fonts provided by the application" in the info.Plist file

and set the label.font to the font with name with / without the .TTF extension

draged the TTF file in to the project and copied the file to the project

created an outlet to the label but still, nothing works.

if someone knows what is going on over there i would like to get some help.

recently i have noticed the this problem are known @ the 4.1 (xcode version).

TNX :)

Answer

Sherman Lo picture Sherman Lo · Sep 4, 2011

The font name isn't the name of the file. What you want to do is double click on the font in Finder.

This should open it in Font Book like this image

The font name you want is the one in the title which I've highlighted so attractively in red.