It appears to be fixed in the developer preview of iOS 7.1. It was introduced in iOS 7.0.3 and has not yet been fixed as of iOS 7.0.4. I tried the previous approach with another font family and it seemed to get confused with a the fontName and the fontFamily. UIFontDescriptor *fontDescriptorForHelveticaNeue = Fonts available at This web site are either GNU/GPL, Freeware, free for Personal use, Donationware, Shareware or Demo. I have switched to the following solution UIFontDescriptor *fontDescriptor = init] HelveticaNeue-MediumItalic fonts Download. So a possible answer to 7.0.3 seems to be the code above.Īlthough the solution worked above, I don't think it is formally correct. I did get a valid UIFont back for fontWithDescriptor and when I queried the font for the fontName with: UIFontDescriptor *symbolicFontDescriptor = I created my font with the following code: UIFontDescriptor *fontDescriptor = He did not seem to be saying that using "HelveticaNeue-Italic" could go away from version to version. What he says is that the font under calls like: + (NSFont *)messageFontOfSize:(CGFloat)fontSizeĪre not guaranteed to return the same underlying font across versions or even different uses. The presenter talks about "MetaFonts" in OS X as an example. I went back to the WWDC 2013 video "Using Font with Text Kit" and the interesting part starts at 12:22. When I do the same query running in the simulator I get (14): HelveticaNeue-BoldItalic, I get the following fontNames (13): HelveticaNeue-BoldItalic, Just upgraded my iPod touch to iOS 7.0.3 and "HelveticaNeue-Italic" seems to have disappeared.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |