ios xcode中所有自带的字体如下(最好结合NSMutableAttributedString相结合使用)
// 打印系统中所有字体的类型名字
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]);
}
}
Family: Copperplate
Font: Copperplate-Light
Font: Copperplate
Font: Copperplate-Bold
Family: Heiti SC
Family: Kohinoor Telugu
Font: KohinoorTelugu-Regular
Font: KohinoorTelugu-Medium
Font: KohinoorTelugu-Light
Family: Thonburi
Font: Thonburi
Font: Thonburi-Bold
Font: Thonburi-Light
Family: Heiti TC
Family: Courier New
Font: CourierNewPS-BoldMT
Font: CourierNewPS-ItalicMT
Font: CourierNewPSMT
Font: CourierNewPS-BoldItalicMT
Family: Gill Sans
Font: GillSans-Italic
Font: GillSans-Bold
Font: GillSans-BoldItalic
Font: GillSans-LightItalic
Font: GillSans
Font: GillSans-Light
Font: GillSans-SemiBold
Font: GillSans-SemiBoldItalic
Font: GillSans-UltraBold
Family: Apple SD Gothic Neo
Font: AppleSDGothicNeo-Bold
Font: AppleSDGothicNeo-UltraLight
Font: AppleSDGothicNeo-Thin
Font: AppleSDGothicNeo-Regular
Font: AppleSDGothicNeo-Light
Font: AppleSDGothicNeo-Medium
Font: AppleSDGothicNeo-SemiBold
Family: Marker Felt
Font: MarkerFelt-Thin
Font: MarkerFelt-Wide
Family: Avenir Next Condensed
Font: AvenirNextCondensed-BoldItalic
Font: AvenirNextCondensed-Heavy
Font: AvenirNextCondensed-Medium
Font: AvenirNextCondensed-Regular
Font: AvenirNextCondensed-HeavyItalic
Font: AvenirNextCondensed-MediumItalic
Font: AvenirNextCondensed-Italic
Font: AvenirNextCondensed-UltraLightItalic
Font: AvenirNextCondensed-UltraLight
Font: AvenirNextCondensed-DemiBold
Font: AvenirNextCondensed-Bold
Font: AvenirNextCondensed-DemiBoldItalic
Family: Tamil Sangam MN
Font: TamilSangamMN
Font: TamilSangamMN-Bold
Family: Helvetica Neue
Font: HelveticaNeue-Italic
Font: HelveticaNeue-Bold
Font: HelveticaNeue-UltraLight
Font: HelveticaNeue-CondensedBlack
Font: HelveticaNeue-BoldItalic
Font: HelveticaNeue-CondensedBold
Font: HelveticaNeue-Medium
Font: HelveticaNeue-Light
Font: HelveticaNeue-Thin
Font: HelveticaNeue-ThinItalic
Font: HelveticaNeue-LightItalic
Font: HelveticaNeue-UltraLightItalic
Font: HelveticaNeue-MediumItalic
Font: HelveticaNeue
Family: Gurmukhi MN
Font: GurmukhiMN-Bold
Font: GurmukhiMN
Family: Times New Roman
Font: TimesNewRomanPSMT
Font: TimesNewRomanPS-BoldItalicMT
Font: TimesNewRomanPS-ItalicMT
Font: TimesNewRomanPS-BoldMT
Family: Georgia
Font: Georgia-BoldItalic
Font: Georgia
Font: Georgia-Italic
Font: Georgia-Bold
Family: Apple Color Emoji
Font: AppleColorEmoji
Family: Arial Rounded MT Bold
Font: ArialRoundedMTBold
Family: Kailasa
Font: Kailasa-Bold
Font: Kailasa
Family: Kohinoor Devanagari
Font: KohinoorDevanagari-Light
Font: KohinoorDevanagari-Regular
Font: KohinoorDevanagari-Semibold
Family: Kohinoor Bangla
Font: KohinoorBangla-Semibold
Font: KohinoorBangla-Regular
Font: KohinoorBangla-Light
Family: Chalkboard SE
Font: ChalkboardSE-Bold
Font: ChalkboardSE-Light
Font: ChalkboardSE-Regular
Family: Sinhala Sangam MN
Font: SinhalaSangamMN-Bold
Font: SinhalaSangamMN
Family: PingFang TC
Font: PingFangTC-Medium
Font: PingFangTC-Regular
Font: PingFangTC-Light
Font: PingFangTC-Ultralight
Font: PingFangTC-Semibold
Font: PingFangTC-Thin
Family: Gujarati Sangam MN
Font: GujaratiSangamMN-Bold
Font: GujaratiSangamMN
Family: Damascus
Font: DamascusLight
Font: DamascusBold
Font: DamascusSemiBold
Font: DamascusMedium
Font: Damascus
Family: Noteworthy
Font: Noteworthy-Light
Font: Noteworthy-Bold
Family: Geeza Pro
Font: GeezaPro
Font: GeezaPro-Bold
Family: Avenir
Font: Avenir-Medium
Font: Avenir-HeavyOblique
Font: Avenir-Book
Font: Avenir-Light
Font: Avenir-Roman
Font: Avenir-BookOblique
Font: Avenir-MediumOblique
Font: Avenir-Black
Font: Avenir-BlackOblique
Font: Avenir-Heavy
Font: Avenir-LightOblique
Font: Avenir-Oblique
Family: Academy Engraved LET
Font: AcademyEngravedLetPlain
Family: Mishafi
Font: DiwanMishafi
Family: Futura
Font: Futura-CondensedMedium
Font: Futura-CondensedExtraBold
Font: Futura-Medium
Font: Futura-MediumItalic
Font: Futura-Bold
Family: Farah
Font: Farah
Family: Kannada Sangam MN
Font: KannadaSangamMN
Font: KannadaSangamMN-Bold
Family: Arial Hebrew
Font: ArialHebrew-Bold
Font: ArialHebrew-Light
Font: ArialHebrew
Family: Arial
Font: ArialMT
Font: Arial-BoldItalicMT
Font: Arial-BoldMT
Font: Arial-ItalicMT
Family: Party LET
Font: PartyLetPlain
Family: Chalkduster
Font: Chalkduster
Family: Hoefler Text
Font: HoeflerText-Italic
Font: HoeflerText-Regular
Font: HoeflerText-Black
Font: HoeflerText-BlackItalic
Family: Optima
Font: Optima-Regular
Font: Optima-ExtraBlack
Font: Optima-BoldItalic
Font: Optima-Italic
Font: Optima-Bold
Family: Palatino
Font: Palatino-Bold
Font: Palatino-Roman
Font: Palatino-BoldItalic
Font: Palatino-Italic
Family: Lao Sangam MN
Font: LaoSangamMN
Family: Malayalam Sangam MN
Font: MalayalamSangamMN-Bold
Font: MalayalamSangamMN
Family: Al Nile
Font: AlNile-Bold
Font: AlNile
Family: Bradley Hand
Font: BradleyHandITCTT-Bold
Family: PingFang HK
Font: PingFangHK-Ultralight
Font: PingFangHK-Semibold
Font: PingFangHK-Thin
Font: PingFangHK-Light
Font: PingFangHK-Regular
Font: PingFangHK-Medium
Family: Trebuchet MS
Font: Trebuchet-BoldItalic
Font: TrebuchetMS
Font: TrebuchetMS-Bold
Font: TrebuchetMS-Italic
Family: Helvetica
Font: Helvetica-Bold
Font: Helvetica
Font: Helvetica-LightOblique
Font: Helvetica-Oblique
Font: Helvetica-BoldOblique
Font: Helvetica-Light
Family: Courier
Font: Courier-BoldOblique
Font: Courier
Font: Courier-Bold
Font: Courier-Oblique
Family: Cochin
Font: Cochin-Bold
Font: Cochin
Font: Cochin-Italic
Font: Cochin-BoldItalic
Family: Hiragino Mincho ProN
Font: HiraMinProN-W6
Font: HiraMinProN-W3
Family: Devanagari Sangam MN
Font: DevanagariSangamMN
Font: DevanagariSangamMN-Bold
Family: Oriya Sangam MN
Font: OriyaSangamMN
Font: OriyaSangamMN-Bold
Family: Snell Roundhand
Font: SnellRoundhand-Bold
Font: SnellRoundhand
Font: SnellRoundhand-Black
Family: Zapf Dingbats
Font: ZapfDingbatsITC
Family: Bodoni 72
Font: BodoniSvtyTwoITCTT-Bold
Font: BodoniSvtyTwoITCTT-Book
Font: BodoniSvtyTwoITCTT-BookIta
Family: Verdana
Font: Verdana-Italic
Font: Verdana-BoldItalic
Font: Verdana
Font: Verdana-Bold
Family: American Typewriter
Font: AmericanTypewriter-CondensedLight
Font: AmericanTypewriter
Font: AmericanTypewriter-CondensedBold
Font: AmericanTypewriter-Light
Font: AmericanTypewriter-Semibold
Font: AmericanTypewriter-Bold
Font: AmericanTypewriter-Condensed
Family: Avenir Next
Font: AvenirNext-UltraLight
Font: AvenirNext-UltraLightItalic
Font: AvenirNext-Bold
Font: AvenirNext-BoldItalic
Font: AvenirNext-DemiBold
Font: AvenirNext-DemiBoldItalic
Font: AvenirNext-Medium
Font: AvenirNext-HeavyItalic
Font: AvenirNext-Heavy
Font: AvenirNext-Italic
Font: AvenirNext-Regular
Font: AvenirNext-MediumItalic
Family: Baskerville
Font: Baskerville-Italic
Font: Baskerville-SemiBold
Font: Baskerville-BoldItalic
Font: Baskerville-SemiBoldItalic
Font: Baskerville-Bold
Font: Baskerville
Family: Khmer Sangam MN
Font: KhmerSangamMN
Family: Didot
Font: Didot-Italic
Font: Didot-Bold
Font: Didot
Family: Savoye LET
Font: SavoyeLetPlain
Family: Bodoni Ornaments
Font: BodoniOrnamentsITCTT
Family: Symbol
Font: Symbol
Family: Menlo
Font: Menlo-Italic
Font: Menlo-Bold
Font: Menlo-Regular
Font: Menlo-BoldItalic
Family: Bodoni 72 Smallcaps
Font: BodoniSvtyTwoSCITCTT-Book
Family: Papyrus
Font: Papyrus
Font: Papyrus-Condensed
Family: Hiragino Sans
Font: HiraginoSans-W3
Font: HiraginoSans-W6
Family: PingFang SC
Font: PingFangSC-Ultralight
Font: PingFangSC-Regular
Font: PingFangSC-Semibold
Font: PingFangSC-Thin
Font: PingFangSC-Light
Font: PingFangSC-Medium
Family: Myanmar Sangam MN
Font: MyanmarSangamMN-Bold
Font: MyanmarSangamMN
Family: Euphemia UCAS
Font: EuphemiaUCAS-Italic
Font: EuphemiaUCAS
Font: EuphemiaUCAS-Bold
Family: Telugu Sangam MN
Family: Bangla Sangam MN
Family: Zapfino
Font: Zapfino
Family: Bodoni 72 Oldstyle
Font: BodoniSvtyTwoOSITCTT-Book
Font: BodoniSvtyTwoOSITCTT-Bold
Font: BodoniSvtyTwoOSITCTT-BookIt
部分字体展示如下
ios xcode中所有自带的字体如下(最好结合NSMutableAttributedString相结合使用)的更多相关文章
- iOS - Xcode中从动态库剥离不需要的架构
自从iOS 8发布以来,开发人员已经能够利用动态库对iOS开发的好处.对于一般开发,为所有需要的架构设置一个单一的动态库是非常好的,所以您可以在所有设备和iOS模拟器上运行,而无需更改任何东西.然而, ...
- iOS:Xcode中SVN不能提交CocoaPods中的.a文件的解决方法
不能提交.a文件, 这个与SVN的配置有关, 其实与xcode倒没有关系. 解决方法: 1. 打开终端, 在命令行中输入: vi ~/.subversion/config 来打开配置文件.2. 然 ...
- IOS开发中与设计沟通之字体大小转换
px:相对长度单位.像素(Pixel).pt:绝对长度单位.点(Point).1in = 2.54cm = 25.4 mm = 72pt = 6pc 具体换算是: Points Pixels Ems ...
- iOS——Xcode中添加第三方库
一.只有.h和.a文件的库 1.向项目中添加三方库文件 如果添加的第三方库只有.h和.a文件,直接把文件夹拖进项目下面,这时会弹出下面的提示框,一定要勾选下面选择的选项: 这里要注意,在Add to ...
- IOS开发中UIFont字体设置
我们在开发中很多时候要设置UIlabel,UIbutton,UItextfield的字体,这个时候我们就需要用到UIFont,下面简单介绍一下UIFont的用法,仅供参考. UIFont用于获取和设置 ...
- iOS开发中涉及的字体问题
iOS中常见3种方法来控制字体,下面根据我在网上学习总结的内容发布(已完美避过所有坑,iOS8.4) 一.系统默认的设置字体方法(只对英文和数字生效的方法) 1.系统默认提供的字体主要是指UIFont ...
- iOS中利用 runtime 一键改变字体
1.准备 我们新建一个项目名叫ChangeFont,然后我就随便找了个名叫loveway.ttf的字体库拖进去,里面的工程目录大概就是这样的 目录 现在我们就简单的直接在storyboard上拖了一个 ...
- IOS开发中Xcode常用插件安装与管理(转)
XCode中插件管理工具:Alcatraz 转自http://www.cocoachina.com/industry/20140506/8325.html 苹果现在的成绩得益于其始终如一的坚持. ...
- iOS开发时,在Xcode中添加多个Targets进行版本控制
在iOS开发中,很可能有以下场景:需要开发多个版本,或因需区分收费版,免费版,或因为网络环境需要区分测试版,发布版,或因渠道不同需要区分企业版,AppStore版等等.解决办法无非就是CheckOut ...
随机推荐
- 在Linux下访问Windows共享目录的配置方法
在Linux下访问Windows共享目录的配置方法 1.在Windows上设置一个共享目录 如:将d:\RedHat_disk设置为共享目录 2.在Windows上创建一个用户,如tommy,密码11 ...
- mysql 报错:java.lang.OutOfMemoryError: Java heap space
原因:mysql会将查询到的记录全部发送到java端保存,而JVM中如果98%的时间是用于GC,且可用的Heap size 不足2%的时候将抛出此异常信息.JVM堆的设置是指java程序运行过程中JV ...
- jmeter从外部文件取值问题,如果文件中的参数值为纯数字形式的,jmeter会默认将其识别成int型数据
如果你通过CSV Data Set Config或者_StringFromFile函数来参数化你的请求,需要特别注意当参数为纯数字时,jmeter会默认将其识别成int型数据,说明jmeter并不是默 ...
- Cron表达式的详细用法
字段 允许值 允许的特殊字符 秒 0-59 , - * / 分 0-59 , - * / 小时 0-23 , - * / 日期 1-31 , - * ? / L W C 月份 1-12 或者 JAN- ...
- MySQL-Front 出现“程序注册时间到期 程序将被限制模式下运行”解决方式
MySQL-Front 出现“程序注册时间到期 程序将被限制模式下运行”解决方式 在用mysql-front的时候遇到显示:程序注册时间到期程序将被限制模式下运行.可以在“帮助”菜单下的点“登记”-- ...
- UITextField 设置 placeholder 的字体颜色方法
p.p1 { margin: 0.0px 0.0px 0.0px 0.0px; font: 18.0px Helvetica; color: #ff2608 } [_textField setValu ...
- javascript 判断是否使用的是ipad
//判断是否使用的是ipad function isIpad(){ var ua = navigator.userAgent.toLowerCase(); if(/ipad/i.test(ua)) { ...
- SQL优化及注意事项
1. 把数据.日志.索引放到不同的I/O设备上,增加读取速度.数据量(尺寸)越大,提高I/O越重要. 2. 纵向.横向分割表,减少表的尺寸,如:可以把大数据量的字段拆分表. 3. 根据查询条件,建立索 ...
- 一键批量ping任意ip段的存活主机
=======================by me===================================== @echo offecho.color FC for /f %%i ...
- nodejs querystring
Query String querystring.parse(str[, sep][, eq][, options]) querystring.stringify(obj[, sep][, eq][, ...