iOS: 字体样式
获取iOS内置所有的字体如下:
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: Iowan Old Style
Font: IowanOldStyle-Italic
Font: IowanOldStyle-Roman
Font: IowanOldStyle-BoldItalic
Font: IowanOldStyle-Bold
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-Thin
Font: AppleSDGothicNeo-UltraLight
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-Black
Font: Avenir-MediumOblique
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
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
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-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 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: Euphemia UCAS
Font: EuphemiaUCAS-Italic
Font: EuphemiaUCAS
Font: EuphemiaUCAS-Bold
Family: Telugu Sangam MN
Family: Bangla Sangam MN
Family: Zapfino
Font: Zapfino
Family: Bodoni Oldstyle
Font: BodoniSvtyTwoOSITCTT-Book
Font: BodoniSvtyTwoOSITCTT-Bold
Font: BodoniSvtyTwoOSITCTT-BookIt
字体样式形状:
iOS: 字体样式的更多相关文章
- iOS 设置字体样式
1.iOS设置字体样式 label.font = [UIFont fontWithName:@"Arial-BoldItalicMT" size:24]; 字体名如下: F ...
- 一文让你彻底了解iOS字体相关知识
写本文的契机主要是把自己整理的关于iOS字体方面的知识不断更新写在这篇博文中,用来自己以后查阅. 一.iOS原生字体展示 在label中选择字体的font,并把font由system改成custom后 ...
- (转)iOS字体
一.iOS原生字体展示 在 label中选择字体的font,并把font由system改成custom后,就能在family中看到72种特殊字体.这些里面就有很炫的字体,但 是全部是只针对英文数字,对 ...
- 字体样式(.ttf/.woff)文件的配置引入
在引入前端框架部分功能时,有时需要配置字体样式.可以这样配置:在 .ttf的同级目录下,创建icon.css文件,写入: @font-face {font-family: "element- ...
- 学习微信小程序之css4设置颜色,单位表示,字体样式
颜色的设置可以通过RGB设置 可以直接通过英文单词设置 可以通过16进制来设置 长度单位: 字体样式: 设置字体样式 字体粗细 设置字体风格 设置字间距
- css3中的字体样式
text-overform:ellipsis省略号/clip裁剪. overform:hidden溢出隐藏文字. 但是text-overflow只是用来说明文字溢出时用什么方式显示,要实现溢出时产生省 ...
- CSS3初学篇章_3(属性选择符/字体样式/元素样式)
属性选择符 选择符 说明 E[att] 选择具有att属性的E元素. E[att="val"] 选择具有att属性且属性值等于val的E元素. E[att~=&quo ...
- css字体样式(Font Style),属性
css字体样式(Font Style),属性 css字体样式(Font Style)是网页中不可或缺的样式属性之一,有了字体样式,我们的网页才能变得更加美观,因此字体样式属性也就成为了每一位设计者 ...
- 【Android】 TextView设置个别字体样式
SpannableString msp = new SpannableString("测试"+XM+"更换当前号码将从手机发送一条普通短信进行验证"); msp ...
随机推荐
- SQL Server Connection Pooling (ADO.NET)
SQL Server Connection Pooling (ADO.NET) Connecting to a database server typically consists of severa ...
- git的使用总结【干货·转载】
源文地址:https://juejin.im/post/5a54386af265da3e3b7a6317 摘抄: 版本树 / graph / network 干净简洁清晰 提交信息明确 易维护易读 举 ...
- [Gym - 100517K] Kingdom Division 2 二分
大致题意: 给出一个凸包,以及凸包内的两个点p1,p2,求有多少条经过凸包顶点的直线能够将凸包分割为两部分,且给出的两点分别属于不同的部分 枚举凸包的顶点,二分求出p1,p2线段左边的最大坐标L以及右 ...
- 洛谷P4171 [JSOI2010] 满汉全席 [2-SAT,Tarjan]
题目传送门 满汉全席 题目描述 满汉全席是中国最丰盛的宴客菜肴,有许多种不同的材料透过满族或是汉族的料理方式,呈现在數量繁多的菜色之中.由于菜色众多而繁杂,只有极少數博学多闻技艺高超的厨师能够做出满汉 ...
- python3 爬虫教学之爬取链家二手房(最下面源码) //以更新源码
前言 作为一只小白,刚进入Python爬虫领域,今天尝试一下爬取链家的二手房,之前已经爬取了房天下的了,看看链家有什么不同,马上开始. 一.分析观察爬取网站结构 这里以广州链家二手房为例:http:/ ...
- LaTex 小技巧
首行缩进 参考:小技巧之--首行缩进 %-------------------------------------------------------------------------------- ...
- vue v-model 简单使用
最近在写组件时,考虑到子组件的状态需要实时反馈给父组件,于是想起来了v-model,下面介绍一下自定义组件中的简单使用 官网介绍不是很清晰,这个默认的input事件很容易让人产生误解,其实个人建议还是 ...
- python解决组合问题
1.问题描述 比如9个数中取4个数的组合以及列出各种组合,该如何做? 我们可以考虑以下一个简单组合:从1,2,3,4,5,6中,如何选取任意四个数的组合. 固定:1 2 3 ,组合有1234 ...
- bzoj 1211: [HNOI2004]树的计数 -- purfer序列
1211: [HNOI2004]树的计数 Time Limit: 10 Sec Memory Limit: 162 MB Description 一个有n个结点的树,设它的结点分别为v1, v2, ...
- web前端 -- onkeydown、onkeypress、onkeyup、onblur、onchange、oninput、onpropertychange的区别
FROM:http://www.cnblogs.com/svage/archive/2011/11/15/2249954.html onkeydown:按下任何键(字母.数字.系统.tab等)都能触发 ...