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开发者_C百科 array!
How can I get "Times" font?
thanks
try
[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.
精彩评论