iOS中文本属性Attributes

NSFontAttributeName                    //设置字体大小
NSParagraphStyleAttributeName          //设置段落格式
NSForegroundColorAttributeName         //设置字体的颜色
NSBackgroundColorAttributeName         //设置背景的颜色
NSLigatureAttributeName                //设置连体字符
NSKernAttributeName                    //设置文字之间的距离
NSStrikethroughStyleAttributeName      //设置删除线的样式
NSUnderlineStyleAttributeName          //设置下划线的格式
NSStrikethroughColorAttributeName      //设置删除线的颜色
NSStrokeColorAttributeName             //设置中空效果的填充颜色
NSStrokeWidthAttributeName             //设置中空效果的宽度
NSShadowAttributeName                  //设置阴影效果
NSTextEffectAttributeName              //设置文本的特殊效果
NSAttachmentAttributeName              //设置文本附件
NSLinkAttributeName                    //设置超链接
NSBaselineOffsetAttributeName          //设置基线偏移值
NSUnderlineColorAttributeName          //设置下划线的颜色
NSObliquenessAttributeName             //设置字体倾斜
NSExpansionAttributeName               //设置文本扁平化(横向拉伸)
NSWritingDirectionAttributeName        //设置文字的书写方向
NSVerticalGlyphFormAttributeName       //设置文字的排版方向
原文地址:https://www.cnblogs.com/carlos-mm/p/6566703.html