I want to use custom font in an iPhone application. I have already two file 'font suitcase' and its supported file 'postscript type 1 '. I am using like this:
NSString *fontPath = [[NSBundle mainBundle] pathForResource:@"Myfont" ofType:nil];
if( fontPath == nil )
{
    return;
}
CGDataProviderRef fontDataProvider = CGDataProviderCreateWithFilename( [ fontPath UTF8String]);
if( fontDataProvider == nil ) 
{
    return;
}
// Create the font with the data provider, then release the data provider.
customFont = CGFontCreateWithDataProvider(fontDataProvider);
if( customFont != nil )
{
    bLoadedFontFile = YES;
}
CGDataProviderRelease(fontDataProvider); 
    ...
'Myfont' is a postscript file. CGDataProviderCreateWithFilename API returns NULL. 
Thanks Virendra E-Mail ID: virendra.p@codewalla.com
 
     
     
     
     
    