CGFontCreateWithFontName(CFSTR(“Times”)) doesn't work, return NULL

I'm trying to create font with font name/PostScript "Times" or "Times-Roman" or "Times-Bold" but function CGFontCreateWithFontName returns NULL. I also try [UIFont fontWithName:@"Times" size:18], but it's the same.

In my fonts library "Times" exists! So I got array [UIFont familyNames] and I discovered that there isn't "Times" family in the array!

How can I get "Times" font?




[UIFont fontWithName:@"TimesNewRomanPSMT" size:18]

There is a nice application called AllFonts on the appStore that helps you find out the same of every fonts.

Need Your Help

How do I open a new window on start up using C++?

c++ windows

I don't know how to make a window when I start up Windows. I just want a simple window that has some text in it, such as a reminder. I don't want to download anything, and I think C++ is the easies...

Uploading files different servers at once using a single html Form

forms post upload amazon-s3 pylons

Is there a way to make a form where it can simultaneously upload to several servers at once?

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.