NSFontAttributeName overview 里面 Attributed String Programming Guide standard attribute
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) |
时间: 2024-10-31 13:41:43