title: Font problems iOS 5.0 vs 4.3
body: <p>I have an app that uses a few custom fonts. When the app runs in iOS 5 the fonts display correctly, but in 4.3 they do not, and system fonts are substituted. Also, I'm using NSAttributedStrings in on place to do rich text in a UILabel subClass. In iOS 5, the attributed string works fine, but in 4.3 the app crashes. The crash comes in a category on NSAttributedString in this method:</p>
  
  <pre><code>
  -(void)setFontName:(NSString*)fontName size:(CGFloat)size range:(NSRange)range {
      // kCTFontAttributeName
          // crashes on next line
      CTFontRef aFont = CTFontCreateWithName((__bridge CFStringRef)fontName, size, NULL);
      if (!aFont) return;
      [self removeAttribute:(NSString*)kCTFontAttributeName range:range]; // Work around for Apple leak
      [self addAttribute:(NSString*)kCTFontAttributeName value:(__bridge id)aFont range:range];
      CFRelease(aFont);
  }
  </code></pre>
  
  <p>Any ideas on what is screwing up my fonts in 4.3? I've done a quick test project using the same fonts and they work properly in 4.3.</p>
  
  <p>Jk</p>