Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

anni.saini

macrumors newbie
Original poster
Jul 15, 2009
18
0
Hi,

i was trying to create font using

CGFontRef cgFont = CGFontCreateWithFontName((CFStringRef)@"Casual");

This function is returning null for some fonts. Can anybody tell me what would be the probable reason for this.

I was using Mac OS X 10.5.8.

regards,
anni
 
You could try using "Apple Casual" instead.

BTW instead of using (CFStringRef)@"Casual" you can use CFSTR("Casual")
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.