ios学习笔记-Character Attributes
2017-06-05 本文已影响19人
亭竹丶
NSAttachmentAttributeName - 添加附件 NSTextAttachment
NSBackgroundColorAttributeName - 背景色
NSBaselineOffsetAttributeName - 偏移

NSExpansionAttributeName - 放大

NSFontAttributeName - 字体
NSForegroundColorAttributeName - 字颜色
NSKernAttributeName - 字间距
NSLigatureAttributeName - 连接字符与字符链接显示, ios只支持(1、0),注意下图的fl。

NSLinkAttributeName - 超链接
NSObliquenessAttributeName - 倾斜
NSParagraphStyle - 段落
NSShadowAttributeName - 阴影
NSStrikethroughStyleAttributeName - 删除线样式
NSStrikethroughColorAttributeName - 删除线颜色
NSStrokeColorAttributeName - 轮廓颜色
NSStrokeWidthAttributeName - 轮廓宽度,详情见下图

NSTextEffectAttributeName - 特殊效果
NSUnderlineStyleAttributeName - 下划线
NSUnderlineColorAttributeName - 下划线颜色
NSVerticalGlyphFormAttributeName - 水平和垂直
NSWritingDirectionAttributeName - 书写方式。