NSFontAttributeName
;
//
字体,value是
UIFont
对象
NSParagraphStyleAttributeName
;
//
绘图的风格(居中,换行模式,间距等诸多风格),value是
NSParagraphStyle
对象
NSForegroundColorAttributeName
;
//
文字颜色,value是
UIFont
对象
NSBackgroundColorAttributeName
;
//
背景色,value是
UIFont
NSLigatureAttributeName
;
//
字符连体,value是
NSNumber
NSKernAttributeName
;
//
字符间隔
NSStrikethroughStyleAttributeName
;
//
删除线,value是
NSNumber
NSUnderlineStyleAttributeName
;
//
下划线,value是
NSNumber
NSStrokeColorAttributeName
;
//
描绘边颜色,value是
UIColor
NSStrokeWidthAttributeName
;
//
描边宽度,value是
NSNumber
NSShadowAttributeName
;
//
阴影,value是
NSShadow
对象
NSTextEffectAttributeName
;
//
文字效果,value是
NSString
NSAttachmentAttributeName
;
//
附属,value是
NSTextAttachment
对象
NSLinkAttributeName
;
//
链接,value是
NSURL
or
NSString
NSBaselineOffsetAttributeName
;
//
基础偏移量,value是
NSNumber
对象
NSUnderlineColorAttributeName
;
//
下划线颜色,value是
UIColor
对象
NSStrikethroughColorAttributeName
;
//
删除线颜色,value是
UIColor
NSObliquenessAttributeName
;
//
字体倾斜
NSExpansionAttributeName
;
//
字体扁平化
NSVerticalGlyphFormAttributeName
;
//
垂直或者水平,value是
NSNumber
,
0
表示水平,
1
垂直
转载于:https://www.cnblogs.com/fuunnyy/p/8795867.html