I’m writing an iOS 6 iPhone/iPad app that needs to display Chinese characters. The Asian fonts installed by default in iOS 6 leave a lot to be desired. However, at the bottom of Apple’s iOS 6: Font List page, Apple states that:
“Apps can also install the following [mostly Asian] fonts as necessary.”
The Asian font families don’t appear in the list provided by [UIFont familyNames]. I haven’t found any information in the UIFont class documentation or on the Apple Developer Forums about how to install a font that is, presumably, already included in iOS 6 but not yet “installed.” Any ideas?
[UIFont familyNames](e.g. Apple SD Gothic Neo)UIFont.hUIFont.hsince 4.0 (added lineHeight, deprecated leading).Since we know every developer can use custom fonts it’s absolutely no problem to add them or “install” them for your app.
I’m pretty sure these are some requested fonts, which some guy at Apple wrote on this page to show that it’s possible to use these fonts nevertheless even if they are not specially supported by iOS.
I know this is no answer which is totally correct or totally wrong – it’s based on the information I knew and I found on the web and makes it clear, that we probably never know the answer.
To support a custom font add your font in a
.ttfformat to your project (and to your target – I forgot this more than once!) and add it to your Info.plist. Now it’s possible to use it withsomeLabel.font = [UIFont fontWithName:@"MySuperFont" size:100];