[NSAttributedString] 简介

NSFontAttributeName overview 里面 Attributed String Programming Guide  standard attribute 

 

Table 1  Table of standard attributes

Attribute Identifier

Value Class

Default Value

NSAttachmentAttributeName

NSTextAttachment

none (no attachment)

NSBackgroundColorAttributeName

NSColor

none (no background)

NSBaselineOffsetAttributeName

NSNumber, as a float

0.0

NSFontAttributeName

NSFont

Helvetica 12-point // 字体

NSForegroundColorAttributeName

NSColor

black //字体景色

NSKernAttributeName

NSNumber, as a float

0.0 //字体间距

NSLigatureAttributeName

NSNumber, as an int

1 (standard ligatures) // 连字符

NSLinkAttributeName

id

none (no link)

NSParagraphStyleAttributeName

NSParagraphStyle

(as returned by NSParagraphStyle’s defaultParagraphStyle method)

NSSuperscriptAttributeName

NSNumber, as an int

0

NSUnderlineStyleAttributeName

NSNumber, as an int

none (no underline)

posted @ 2015-08-26 12:03  baaingSheep  阅读(165)  评论(0编辑  收藏  举报