title: Can I embed a custom font in a bundle and access it from an ios framework?
body: <p>I'm creating an ios <strong>framework</strong> with its <strong>bundle</strong> for packaging ressources (nib, images, fonts) and I'm trying to embed a <strong>custom font</strong> in the bundle but I'm not able to load it from the framework, is it possible ?</p>
  
  <p>1) I can localize the font file with this: 
  <code>objc
      NSString *fontPath = [[NSBundle frameworkBundle] pathForResource:@"MyCustomFont" ofType:@"ttf"];
  </code>
  2) But I can't get it in my fonts lists:
  <code>objc
  NSArray * array = [UIFont familyNames];
  </code>
  I included my font name in the bundle's plist with a "Fonts provided by application", without success, tried also in the app info plist, include it in the framework ressource without success.</p>
  
  <p>I can load the nib and images from the bundle (by prefixing with the bundle's name) but not for the font. Any thought ?</p>
  
  <p><strong>EDIT :</strong> I saw the following post : <a href="https://stackoverflow.com/questions/360751/can-i-embed-a-custom-font-in-an-iphone-application">Can I embed a custom font in an iPhone application?</a>, but the question is just "Can I embed a custom font in an iPhone application?" not "Can I embed a custom font in an external framework/bundle ?" It also makes references to a dynamic loading which is interesting but it is using private api, which is not usable solution for a framework.</p>
  
  <p>Thanks</p>