読者です 読者をやめる 読者になる 読者になる

kanetaiの二次記憶装置

プログラミングに関するやってみた、調べた系のものをQitaに移して、それ以外をはてブでやる運用にしようと思います。http://qiita.com/kanetai

UIFont

UIFont一覧

testLbl.font = [UIFont fontWithName:@"Courier-BoldOblique" size:15.0];

とかでUIのフォントを指定できるが、使えるフォントが分からなかったので調べる。
ちなみに、等幅フォントを使いたいならCourierあたりが良いと思う。

for (NSString *family in [UIFont familyNames]) {
    printf("family:%s\n", [family UTF8String]); //NSLog(@"family:%@", family);
    //NSLog(@"%@", [UIFont fontNamesForFamilyName:family);
    for(NSString *font in [UIFont fontNamesForFamilyName:family])
        printf("\t%s\n", [font UTF8String]);
}
family:Thonburi
	Thonburi-Bold
	Thonburi
family:Snell Roundhand
	SnellRoundhand-Bold
	SnellRoundhand-Black
	SnellRoundhand
family:Academy Engraved LET
	AcademyEngravedLetPlain
family:Avenir
	Avenir-LightOblique
	Avenir-MediumOblique
	Avenir-Medium
	Avenir-HeavyOblique
	Avenir-BlackOblique
	Avenir-Oblique
	Avenir-Book
	Avenir-Roman
	Avenir-BookOblique
	Avenir-Light
	Avenir-Heavy
	Avenir-Black
family:Marker Felt
	MarkerFelt-Wide
	MarkerFelt-Thin
family:Geeza Pro
	GeezaPro-Bold
	GeezaPro
family:Arial Rounded MT Bold
	ArialRoundedMTBold
family:Trebuchet MS
	TrebuchetMS
	TrebuchetMS-Bold
	TrebuchetMS-Italic
	Trebuchet-BoldItalic
family:Arial
	Arial-BoldMT
	ArialMT
	Arial-ItalicMT
	Arial-BoldItalicMT
family:Marion
	Marion-Regular
	Marion-Bold
	Marion-Italic
family:Gurmukhi MN
	GurmukhiMN
	GurmukhiMN-Bold
family:Malayalam Sangam MN
	MalayalamSangamMN-Bold
	MalayalamSangamMN
family:Bradley Hand
	BradleyHandITCTT-Bold
family:Kannada Sangam MN
	KannadaSangamMN
	KannadaSangamMN-Bold
family:Bodoni 72 Oldstyle
	BodoniSvtyTwoOSITCTT-Book
	BodoniSvtyTwoOSITCTT-Bold
	BodoniSvtyTwoOSITCTT-BookIt
family:Cochin
	Cochin
	Cochin-BoldItalic
	Cochin-Italic
	Cochin-Bold
family:Sinhala Sangam MN
	SinhalaSangamMN
	SinhalaSangamMN-Bold
family:Hiragino Kaku Gothic ProN
	HiraKakuProN-W6
	HiraKakuProN-W3
family:Papyrus
	Papyrus-Condensed
	Papyrus
family:Verdana
	Verdana
	Verdana-Bold
	Verdana-BoldItalic
	Verdana-Italic
family:Zapf Dingbats
	ZapfDingbatsITC
family:Avenir Next Condensed
	AvenirNextCondensed-HeavyItalic
	AvenirNextCondensed-DemiBold
	AvenirNextCondensed-Italic
	AvenirNextCondensed-Heavy
	AvenirNextCondensed-DemiBoldItalic
	AvenirNextCondensed-Medium
	AvenirNextCondensed-BoldItalic
	AvenirNextCondensed-Bold
	AvenirNextCondensed-UltraLightItalic
	AvenirNextCondensed-UltraLight
	AvenirNextCondensed-MediumItalic
	AvenirNextCondensed-Regular
family:Courier
	Courier-Bold
	Courier
	Courier-BoldOblique
	Courier-Oblique
family:Hoefler Text
	HoeflerText-Black
	HoeflerText-Italic
	HoeflerText-Regular
	HoeflerText-BlackItalic
family:Helvetica
	Helvetica-LightOblique
	Helvetica
	Helvetica-Oblique
	Helvetica-BoldOblique
	Helvetica-Bold
	Helvetica-Light
family:Euphemia UCAS
	EuphemiaUCAS-Bold
	EuphemiaUCAS
	EuphemiaUCAS-Italic
family:Hiragino Mincho ProN
	HiraMinProN-W3
	HiraMinProN-W6
family:Bodoni Ornaments
	BodoniOrnamentsITCTT
family:Apple Color Emoji
	AppleColorEmoji
family:Optima
	Optima-ExtraBlack
	Optima-Italic
	Optima-Regular
	Optima-BoldItalic
	Optima-Bold
family:Gujarati Sangam MN
	GujaratiSangamMN
	GujaratiSangamMN-Bold
family:Devanagari Sangam MN
	DevanagariSangamMN
	DevanagariSangamMN-Bold
family:Times New Roman
	TimesNewRomanPS-ItalicMT
	TimesNewRomanPS-BoldMT
	TimesNewRomanPSMT
	TimesNewRomanPS-BoldItalicMT
family:Kailasa
	Kailasa
	Kailasa-Bold
family:Telugu Sangam MN
	TeluguSangamMN-Bold
	TeluguSangamMN
family:Heiti SC
	STHeitiSC-Medium
	STHeitiSC-Light
family:Apple SD Gothic Neo
	AppleSDGothicNeo-Bold
	AppleSDGothicNeo-Medium
family:Futura
	Futura-Medium
	Futura-CondensedExtraBold
	Futura-CondensedMedium
	Futura-MediumItalic
family:Bodoni 72
	BodoniSvtyTwoITCTT-BookIta
	BodoniSvtyTwoITCTT-Book
	BodoniSvtyTwoITCTT-Bold
family:Baskerville
	Baskerville-SemiBoldItalic
	Baskerville-Bold
	Baskerville-Italic
	Baskerville-BoldItalic
	Baskerville-SemiBold
	Baskerville
family:Chalkboard SE
	ChalkboardSE-Regular
	ChalkboardSE-Bold
	ChalkboardSE-Light
family:Heiti TC
	STHeitiTC-Medium
	STHeitiTC-Light
family:Copperplate
	Copperplate
	Copperplate-Light
	Copperplate-Bold
family:Party LET
	PartyLetPlain
family:American Typewriter
	AmericanTypewriter-CondensedLight
	AmericanTypewriter-Light
	AmericanTypewriter-Bold
	AmericanTypewriter
	AmericanTypewriter-CondensedBold
	AmericanTypewriter-Condensed
family:Symbol
	Symbol
family:Avenir Next
	AvenirNext-Heavy
	AvenirNext-DemiBoldItalic
	AvenirNext-UltraLightItalic
	AvenirNext-HeavyItalic
	AvenirNext-MediumItalic
	AvenirNext-UltraLight
	AvenirNext-BoldItalic
	AvenirNext-DemiBold
	AvenirNext-Bold
	AvenirNext-Regular
	AvenirNext-Medium
	AvenirNext-Italic
family:Noteworthy
	Noteworthy-Light
	Noteworthy-Bold
family:Bangla Sangam MN
	BanglaSangamMN-Bold
	BanglaSangamMN
family:Zapfino
	Zapfino
family:Tamil Sangam MN
	TamilSangamMN
	TamilSangamMN-Bold
family:Chalkduster
	Chalkduster
family:Arial Hebrew
	ArialHebrew
	ArialHebrew-Bold
family:Georgia
	Georgia-Italic
	Georgia-BoldItalic
	Georgia-Bold
	Georgia
family:Helvetica Neue
	HelveticaNeue-Bold
	HelveticaNeue-CondensedBlack
	HelveticaNeue-Medium
	HelveticaNeue
	HelveticaNeue-Light
	HelveticaNeue-CondensedBold
	HelveticaNeue-LightItalic
	HelveticaNeue-UltraLightItalic
	HelveticaNeue-UltraLight
	HelveticaNeue-BoldItalic
	HelveticaNeue-Italic
family:Gill Sans
	GillSans-LightItalic
	GillSans-BoldItalic
	GillSans-Italic
	GillSans
	GillSans-Bold
	GillSans-Light
family:Palatino
	Palatino-Roman
	Palatino-Bold
	Palatino-BoldItalic
	Palatino-Italic
family:Courier New
	CourierNewPS-BoldMT
	CourierNewPSMT
	CourierNewPS-BoldItalicMT
	CourierNewPS-ItalicMT
family:Oriya Sangam MN
	OriyaSangamMN-Bold
	OriyaSangamMN
family:Didot
	Didot-Italic
	Didot
	Didot-Bold
family:Bodoni 72 Smallcaps
	BodoniSvtyTwoSCITCTT-Book