What fonts do iPhone applications support? [closed

2019-01-08 09:34发布

I found a list of iPhone supported font here
http://daringfireball.net/misc/2007/07/iphone-osx-fonts

But I just wanted to confirm that, can we use all this fonts in application, or we are restricted to some class of fonts.

标签: iphone fonts
5条回答
疯言疯语
2楼-- · 2019-01-08 09:54

I created iFonts so I could email the list to a designer. It's compatible all the way down to 3.0, so you can see what fonts are available on different versions of iOS, and you don't have to worry about whether a web page is accurate or complete. It's been tested all the way up to iOS 7.

查看更多
太酷不给撩
3楼-- · 2019-01-08 10:02

There is a free iPhone app called "Fonts" that will display all the installed fonts. (To download it, click this iTunes link.)

But note that the fonts installed on your personal iPhone or simulator may not be the same as the set of fonts installed on other devices.

查看更多
放荡不羁爱自由
4楼-- · 2019-01-08 10:03

You should be able to use any of those fonts, provided you know the appropriate name. There are calls to enumerate the font families and individual fonts in those families on the phone, but a complete listing is available on this site.

查看更多
在下西门庆
5楼-- · 2019-01-08 10:13

Use the below code for getting all the fonts in system

// Get all the fonts on the system

NSArray *familyNames = [UIFont familyNames];

for( NSString *familyName in familyNames ){
    printf( "Family: %s \n", [familyName UTF8String] );

    NSArray *fontNames = [UIFont fontNamesForFamilyName:familyName];
    for( NSString *fontName in fontNames ){
        printf( "\tFont: %s \n", [fontName UTF8String] );

    }
}
查看更多
劫难
6楼-- · 2019-01-08 10:15

Here's a good list of iPhone supported fonts, with their "real" names that you need to use in code: http://www.alexcurylo.com/blog/2008/10/05/snippet-available-uifonts/.

查看更多
登录 后发表回答