Adding font in iPhone application

I'm trying to add a custom font to my iPhone app.

The font's name is: Susa-Regular.otf

I downloaded the font, installed it, dragged it over to xCode. Then I went into info.plist and added a row called "Fonts provided by application" and typed in Susa-Regular.otf

 UILabel *myLabel = [[UILabel alloc]initWithFrame:frame];
 [myLabel setFont:[UIFont fontWithName:@"Susa-Regular" size: 35]];

When I run the app, the font is still the same. I don't get any error messages either.

Any idea why it doesn't work?


More than likely the "font name" is not the same as the file name.

Open the font in Font Book and see how it represents the font name and use that instead with spaces removed.

You can also use [UIFont familyNames] and [UIFont fontNamesForFamilyName:] to discover what name iOS is using for it.

Need Your Help

Entity Beans inside EJB Project class mapping

java eclipse jpa jdbc ejb

I am using Eclipse and Derby database (with Embeeded Driver). As a starting point I am running the asadmin (from glassfish) to start-database from there. The database within eclipse can be pinged, as

Primefaces 3.4: Tree selectedNode is null

java-ee jsf-2 primefaces

I am new in Primefaces and I try to use the Primefaces Tree for several days now.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.