Visual List of iOS Fonts?

I am looking for a list of iOS Fonts for iOS 7. I have found the list on Apple's developer site, I am just wondering if anyone knows of a visual list where each font name is typed out in its typeface. I have seen one or two before, but the latest one I have seen was for iOS 5, and much more has been added since then.

67542 次浏览

Have you tried IOS 字体?

This gives you a visual of all of the available fonts with the ability to enter your own string of text to see how it would look.

这个字体似乎没有为 iOS7更新过,但是我不知道自从 iOS6以来还有其他的字体被添加进来。

我不知道这样的工具,但有一个变通方法。

  1. 你可以列出 Xcode 的标准字体。创建一个 xib (或者故事板) ,添加一个标签并更改其字体。在那里你可以看到所有字体的列表。
  2. 在您的 OSX 计算机上,您有一个“字体书”应用程序,您可以在其中查看每种字体。

Also remember that you are not limited to the system fonts if you're building an application. You can provide yours as well.

这是 IOS7中的字体的可视化列表。

(原始答案在对象)您可以在运行时获得一个列表:

// available fonts listed in xcode output
for (id familyName in [UIFont familyNames]) {
NSLog(@"%@", familyName);
for (id fontName in [UIFont fontNamesForFamilyName:familyName]) NSLog(@"  %@", fontName);
}

(增加: 快速一班轮) :

UIFont.familyNames.forEach{ print($0); UIFont.fontNames(forFamilyName: $0).forEach{ print("  ", $0) } }

这将暴露出:

Thonburi
Thonburi-Bold
Thonburi
Thonburi-Light
Snell Roundhand
SnellRoundhand-Black
SnellRoundhand-Bold
SnellRoundhand
...

我还做了一个小应用程序,可以用来浏览所有可用的字体。看看 给你

看看 IOS 字体列表。它是新的,有一些比其他网站更多的功能。它还包括其他网站甚至没有提到的可下载字体。

迅速实施:

// Available fonts (console output)
for familyName in UIFont.familyNames() {
print(familyName)
for fontName in UIFont.fontNamesForFamilyName(familyName) {
print(fontName)
}
}

这个字体列表是用 Xcode 7和 iOS 9制作的。

enter image description here

如果您正在以编程方式设置其中之一,并且需要字体名称,则可以执行以下操作:

print(UIFont.familyNames)
// ["Copperplate", "Heiti SC", "Iowan Old Style", "Kohinoor Telugu", "Thonburi", "Heiti TC", "Courier New", "Gill Sans", "Apple SD Gothic Neo", "Marker Felt", "Avenir Next Condensed", "Tamil Sangam MN", "Helvetica Neue", "Gurmukhi MN", "Times New Roman", "Georgia", "Apple Color Emoji", "Arial Rounded MT Bold", "Kailasa", "Kohinoor Devanagari", "Kohinoor Bangla", "Chalkboard SE", "Sinhala Sangam MN", "PingFang TC", "Gujarati Sangam MN", "Damascus", "Noteworthy", "Geeza Pro", "Avenir", "Academy Engraved LET", "Mishafi", "Futura", "Farah", "Kannada Sangam MN", "Arial Hebrew", "Arial", "Party LET", "Chalkduster", "Hoefler Text", "Optima", "Palatino", "Lao Sangam MN", "Malayalam Sangam MN", "Al Nile", "Bradley Hand", "PingFang HK", "Trebuchet MS", "Helvetica", "Courier", "Cochin", "Hiragino Mincho ProN", "Devanagari Sangam MN", "Oriya Sangam MN", "Snell Roundhand", "Zapf Dingbats", "Bodoni 72", "Verdana", "American Typewriter", "Avenir Next", "Baskerville", "Khmer Sangam MN", "Didot", "Savoye LET", "Bodoni Ornaments", "Symbol", "Menlo", "Bodoni 72 Smallcaps", "Papyrus", "Hiragino Sans", "PingFang SC", "Euphemia UCAS", "Telugu Sangam MN", "Bangla Sangam MN", "Zapfino", "Bodoni 72 Oldstyle"]

如果您需要一个特定的粗体/斜体/etc 样式的名称,您可以这样得到它:

for familyName in UIFont.familyNames {
print(UIFont.fontNames(forFamilyName: familyName))
}