Como listar todas as fontes disponíveis no XCode por nome de família

Útil para [UIFont fontWithName:size:]chamadas.

NSArray *families = [[UIFont familyNames] sortedArrayUsingSelector:@selector(localizedCaseInsensitiveCompare:)];
NSMutableString *fonts = [NSMutableString string];
for (int i = 0; i < [families count]; i++) {
[fonts appendString:[NSString stringWithFormat:@"n%@:n", families[i]]];
NSArray *names = [UIFont fontNamesForFamilyName:families[i]];
for (int j = 0; j < [names count]; j++) {
[fonts appendString:[NSString stringWithFormat:@"t%@n", names[j]]];
}
}
NSLog(@"%@", fonts);

Produção real:

Academy Engraved LET:
AcademyEngravedLetPlain

Al Nile:
AlNile-Bold
AlNile

American Typewriter:
AmericanTypewriter-CondensedLight
AmericanTypewriter
AmericanTypewriter-CondensedBold
AmericanTypewriter-Light
AmericanTypewriter-Bold
AmericanTypewriter-Condensed

Apple Color Emoji:
AppleColorEmoji

Apple SD Gothic Neo:
AppleSDGothicNeo-Bold
AppleSDGothicNeo-Thin
AppleSDGothicNeo-Regular
AppleSDGothicNeo-Light
AppleSDGothicNeo-Medium
AppleSDGothicNeo-SemiBold

Arial:
ArialMT
Arial-BoldItalicMT
Arial-BoldMT
Arial-ItalicMT

Arial Hebrew:
ArialHebrew-Bold
ArialHebrew-Light
ArialHebrew

Arial Rounded MT Bold:
ArialRoundedMTBold

Avenir:
Avenir-Medium
Avenir-HeavyOblique
Avenir-Book
Avenir-Light
Avenir-Roman
Avenir-BookOblique
Avenir-Black
Avenir-MediumOblique
Avenir-BlackOblique
Avenir-Heavy
Avenir-LightOblique
Avenir-Oblique

Avenir Next:
AvenirNext-UltraLight
AvenirNext-UltraLightItalic
AvenirNext-Bold
AvenirNext-BoldItalic
AvenirNext-DemiBold
AvenirNext-DemiBoldItalic
AvenirNext-Medium
AvenirNext-HeavyItalic
AvenirNext-Heavy
AvenirNext-Italic
AvenirNext-Regular
AvenirNext-MediumItalic

Avenir Next Condensed:
AvenirNextCondensed-BoldItalic
AvenirNextCondensed-Heavy
AvenirNextCondensed-Medium
AvenirNextCondensed-Regular
AvenirNextCondensed-HeavyItalic
AvenirNextCondensed-MediumItalic
AvenirNextCondensed-Italic
AvenirNextCondensed-UltraLightItalic
AvenirNextCondensed-UltraLight
AvenirNextCondensed-DemiBold
AvenirNextCondensed-Bold
AvenirNextCondensed-DemiBoldItalic

Bangla Sangam MN:
BanglaSangamMN-Bold
BanglaSangamMN

Baskerville:
Baskerville-Italic
Baskerville-SemiBold
Baskerville-BoldItalic
Baskerville-SemiBoldItalic
Baskerville-Bold
Baskerville

Bodoni 72:
BodoniSvtyTwoITCTT-Bold
BodoniSvtyTwoITCTT-Book
BodoniSvtyTwoITCTT-BookIta

Bodoni 72 Oldstyle:
BodoniSvtyTwoOSITCTT-Book
BodoniSvtyTwoOSITCTT-Bold
BodoniSvtyTwoOSITCTT-BookIt

Bodoni 72 Smallcaps:
BodoniSvtyTwoSCITCTT-Book

Bodoni Ornaments:
BodoniOrnamentsITCTT

Bradley Hand:
BradleyHandITCTT-Bold

Chalkboard SE:
ChalkboardSE-Bold
ChalkboardSE-Light
ChalkboardSE-Regular

Chalkduster:
Chalkduster

Cochin:
Cochin-Bold
Cochin
Cochin-Italic
Cochin-BoldItalic

Copperplate:
Copperplate-Light
Copperplate
Copperplate-Bold

Courier:
Courier-BoldOblique
Courier
Courier-Bold
Courier-Oblique

Courier New:
CourierNewPS-BoldMT
CourierNewPS-ItalicMT
CourierNewPSMT
CourierNewPS-BoldItalicMT

Damascus:
DamascusBold
DamascusSemiBold
DamascusMedium
Damascus

Devanagari Sangam MN:
DevanagariSangamMN
DevanagariSangamMN-Bold

Didot:
Didot-Italic
Didot-Bold
Didot

DIN
Alternate:
DINAlternate-Bold

DIN
Condensed:
DINCondensed-Bold

Euphemia UCAS:
EuphemiaUCAS-Italic
EuphemiaUCAS
EuphemiaUCAS-Bold

Farah:
Farah

Futura:
Futura-CondensedMedium
Futura-CondensedExtraBold
Futura-Medium
Futura-MediumItalic

Geeza Pro:
GeezaPro-Light
GeezaPro
GeezaPro-Bold

Georgia:
Georgia-BoldItalic
Georgia
Georgia-Italic
Georgia-Bold

Gill Sans:
GillSans-Italic
GillSans-Bold
GillSans-BoldItalic
GillSans-LightItalic
GillSans
GillSans-Light

Gujarati Sangam MN:
GujaratiSangamMN-Bold
GujaratiSangamMN

Gurmukhi MN:
GurmukhiMN-Bold
GurmukhiMN

Heiti SC:
STHeitiSC-Medium
STHeitiSC-Light

Heiti TC:
STHeitiTC-Medium
STHeitiTC-Light

Helvetica:
Helvetica-Bold
Helvetica
Helvetica-LightOblique
Helvetica-Oblique
Helvetica-BoldOblique
Helvetica-Light

Helvetica Neue:
HelveticaNeue-Italic
HelveticaNeue-Bold
HelveticaNeue-UltraLight
HelveticaNeue-CondensedBlack
HelveticaNeue-BoldItalic
HelveticaNeue-CondensedBold
HelveticaNeue-Medium
HelveticaNeue-Light
HelveticaNeue-Thin
HelveticaNeue-ThinItalic
HelveticaNeue-LightItalic
HelveticaNeue-UltraLightItalic
HelveticaNeue-MediumItalic
HelveticaNeue

Hiragino Kaku Gothic ProN:
HiraKakuProN-W6
HiraKakuProN-W3

Hiragino Mincho ProN:
HiraMinProN-W6
HiraMinProN-W3

Hoefler Text:
HoeflerText-Italic
HoeflerText-Regular
HoeflerText-Black
HoeflerText-BlackItalic

Iowan Old Style:
IowanOldStyle-Italic
IowanOldStyle-Roman
IowanOldStyle-BoldItalic
IowanOldStyle-Bold

Kailasa:
Kailasa-Bold
Kailasa

Kannada Sangam MN:
KannadaSangamMN
KannadaSangamMN-Bold

Malayalam Sangam MN:
MalayalamSangamMN-Bold
MalayalamSangamMN

Marion:
Marion-Italic
Marion-Bold
Marion-Regular

Marker Felt:
MarkerFelt-Thin
MarkerFelt-Wide

Menlo:
Menlo-Italic
Menlo-Bold
Menlo-Regular
Menlo-BoldItalic

Mishafi:
DiwanMishafi

Noteworthy:
Noteworthy-Light
Noteworthy-Bold

Optima:
Optima-Regular
Optima-ExtraBlack
Optima-BoldItalic
Optima-Italic
Optima-Bold

Oriya Sangam MN:
OriyaSangamMN
OriyaSangamMN-Bold

Palatino:
Palatino-Bold
Palatino-Roman
Palatino-BoldItalic
Palatino-Italic

Papyrus:
Papyrus
Papyrus-Condensed

Party LET:
PartyLetPlain

Savoye LET:
SavoyeLetPlain

Sinhala Sangam MN:
SinhalaSangamMN-Bold
SinhalaSangamMN

Snell Roundhand:
SnellRoundhand-Bold
SnellRoundhand
SnellRoundhand-Black

Superclarendon:
Superclarendon-Italic
Superclarendon-Black
Superclarendon-LightItalic
Superclarendon-BlackItalic
Superclarendon-BoldItalic
Superclarendon-Light
Superclarendon-Regular
Superclarendon-Bold

Symbol:
Symbol

Tamil Sangam MN:
TamilSangamMN
TamilSangamMN-Bold

Telugu Sangam MN:
TeluguSangamMN
TeluguSangamMN-Bold

Thonburi:
Thonburi
Thonburi-Bold
Thonburi-Light

Times New Roman:
TimesNewRomanPSMT
TimesNewRomanPS-BoldItalicMT
TimesNewRomanPS-ItalicMT
TimesNewRomanPS-BoldMT

Trebuchet MS:
Trebuchet-BoldItalic
TrebuchetMS
TrebuchetMS-Bold
TrebuchetMS-Italic

Verdana:
Verdana-Italic
Verdana-BoldItalic
Verdana
Verdana-Bold

Zapf Dingbats:
ZapfDingbatsITC

Zapfino:
Zapfino

Respostas relacionadas:

Fontes comuns para Windows e Mac