What happened to “HelveticaNeue-Italic” on iOS 7.0.3

后端 未结 10 1495
说谎
说谎 2020-12-07 09:19

Just upgraded my iPod touch to iOS 7.0.3 and \"HelveticaNeue-Italic\" seems to have disappeared. When I query on the phone with:

[UIFont fontNamesForFamilyN         


        
10条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-07 09:50

    I've found another solution that seems to work. I logged out a call to

    [[UIFont italicSystemFontOfSize:12.0] fontName]

    to see what the actual system italic font being used is, and it returned ".HelveticaNeueInterface-ItalicM3". A simple test shows that using

    [UIFont fontWithName:@".HelveticaNeueInterface-ItalicM3" size:12.0]

    works! Comparing them visually, the font returned by the above call appears to be exactly the same as the original 'HelveticaNeue-Italic' font.

    This problem is almost certainly a bug... Helvetica Neue is the default font in iOS 7, so fonts in that family shouldn't be missing. Everything worked fine in Xcode v.5.0, but immediately after upgrading to 5.0.1, this issue started appearing. I've filed a bug with Apple noting as much. Until then, this solution seems to work...

提交回复
热议问题