美文网首页
iOS 字体格式、粗体、斜体、

iOS 字体格式、粗体、斜体、

作者: 隔墙送来秋千影 | 来源:发表于2018-05-28 09:35 被阅读28次
1.设置黑体,粗体,斜体等都需要用到下面的方法。
label.font = [UIFont fontWithName:@"Helvetica-Bold" size:20];//加粗
label.font = [UIFont fontWithName:@"Helvetica-Oblique" size:20];//加斜
label.font = [UIFont fontWithName:@"Helvetica-BoldOblique" size:20];//又粗又斜

2.字体名如下:
Font Family: American Typewriter
Font: AmericanTypewriter
Font: AmericanTypewriter-Bold//加粗

Font Family: AppleGothic
Font: AppleGothic

Font Family: Arial
Font: ArialMT
Font: Arial-BoldMT
Font: Arial-BoldItalicMT //加粗斜体
Font: Arial-ItalicMT //斜体

Font Family: Arial Rounded MT Bold
Font: ArialRoundedMTBold

Font Family: Arial Unicode MS
Font: ArialUnicodeMS

Font Family: Courier
Font: Courier
Font: Courier-BoldOblique
Font: Courier-Oblique
Font: Courier-Bold

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

Font Family: DB LCD Temp
Font: DBLCDTempBlack

Font Family: Georgia
Font: Georgia-Bold
Font: Georgia
Font: Georgia-BoldItalic
Font: Georgia-Italic

Font Family: Helvetica
Font: Helvetica-Oblique
Font: Helvetica-BoldOblique
Font: Helvetica
Font: Helvetica-Bold

Font Family: Helvetica Neue
Font: HelveticaNeue
Font: HelveticaNeue-Bold

Font Family: Hiragino Kaku Gothic **** W3
Font: HiraKakuProN-W3

Font Family: Hiragino Kaku Gothic **** W6
Font: HiraKakuProN-W6

Font Family: Marker Felt
Font: MarkerFelt-Thin

Font Family: STHeiti J
Font: STHeitiJ-Medium
Font: STHeitiJ-Light

Font Family: STHeiti K
Font: STHeitiK-Medium
Font: STHeitiK-Light

Font Family: STHeiti SC
Font: STHeitiSC-Medium
Font: STHeitiSC-Light

Font Family: STHeiti TC
Font: STHeitiTC-Light
Font: STHeitiTC-Medium

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

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

Font Family: Verdana
Font: Verdana-Bold
Font: Verdana-BoldItalic
Font: Verdana
Font: Verdana-Italic

Font Family: Zapfino
Font: Zapfino

效果如图示:


字体对照图

相关文章

  • iOS 字体格式、粗体、斜体、

    效果如图示:

  • HTML 文本格式化

    HTML 格式化标签 HTML Formatting Elements HTML格式,如字体格式(粗体、斜体、下划...

  • openhtmltopdf 支持自定义字体、粗体

    支持自定义字体 支持粗体 斜体等类似 追溯源码,一种字体对应多个字体列表(常规、粗体、斜体、粗体_斜体) 根据字体...

  • 第一篇博文: Markdown语法手册

    Markdown语法手册 1. 格式控制 1.1 粗体/斜体 代码 显示效果斜体或斜体粗体 加粗斜体 1.2 字...

  • Markdown

    字体大小 卧槽 卧槽 卧槽 123 456 引用 这是一个引用 链接 百度 图片 粗体和斜体 粗体粗体斜体斜体 表...

  • Markdown(三)-字体

    Markdown 可以使用以下几种字体: 例如: 效果如下:斜体文本斜体文本粗体文本粗体文本粗斜体文本粗斜体文本

  • 简书使用的简单语法

    <标题>: ——正常字体—— 标题一 标题二 标题三 <粗体>: ——正常字体——字体加粗字体加粗 <斜体>: —...

  • macdown 格式编写规范

    标题 一级标题 二级标题 三级标题 四级标题 五级标题 粗体 加粗字体 斜体 斜体字体 斜体与加粗 斜体加粗字体 ...

  • 勤练带来力量

    勤练带来力量,格式大概参考 粗体 粗体加斜体 还有下划线

  • Markdown简单入门

    Markdown简单入门 标题 三级标题 四级标题 字体 粗体 斜体 粗体+斜体 删除线 引用 既然选择了远方,便...

网友评论

      本文标题:iOS 字体格式、粗体、斜体、

      本文链接:https://www.haomeiwen.com/subject/dzewjftx.html