A client has provided 4 fonts they would like me to use in their iPad app. These fonts are all from the same family, just with different line weights. (light, normal, bold, etc). They are *.otf files. I have added them to the project, and listed them in info.plist.
I put together a quick test app intended to show each font in a row of a table view. But instead of seeing 4 distinct fonts, I see 2. The first item displays correctly, and then the remaining 3 all display with the same font. So, say the first is bold, the others are all light. The font _is_ being applied, as I'm not seeing the system font, but the line weight is not correct. I have added the fonts to Font Book on my Mac, displayed them in Mail, etc. and they are indeed distinct. Four different line weights. If I ask for fontNamesForFamilyName: I get back an array containing four items, and the names appear correct. However, I only observe two different fonts both in the simulator and on the device. I shared these fonts with another developer who confirmed my observations. He also conducted more extensive testing and discovered that the UIFont object getting created (fontWithName:size:) is the same instance for the 3 items that display the same. I suppose that would explain why they look the same. In response to a forum post on this matter, someone else told me that through extensive testing, he had determined that only 2 styles per family are supported. UIFont documentation does not mention this, but it is consistent with what I'm seeing. Bottom line, I need all four fonts. Any suggestions on what I can do? Thanks, Brian _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com