Skip to content

Files

Latest commit

 

History

History
47 lines (47 loc) · 3.25 KB

NSAttributedStringsMappingModel.csv

File metadata and controls

47 lines (47 loc) · 3.25 KB
1
iOSMaciOSMac
2
MAPPEDconst CFStringRef kCTCharacterShapeAttributeName;NSString *NSCharacterShapeAttributeName;CFNumberinteger value
3
MAPPEDconst CFStringRef kCTFontAttributeName;NSString *NSFontAttributeName;CTFontNSFont
4
MAPPEDconst CFStringRef kCTKernAttributeName;NSString *NSKernAttributeName;CFNumberNSNumber
5
MAPPEDconst CFStringRef kCTLigatureAttributeName;NSString *NSLigatureAttributeName;CFNumberNSNumber
6
MAPPEDconst CFStringRef kCTForegroundColorAttributeName;NSString *NSForegroundColorAttributeName;CGColorNSColor
7
const CFStringRef kCTForegroundColorFromContextAttributeName;CFBoolean
8
MAPPEDconst CFStringRef kCTParagraphStyleAttributeName;NSString *NSParagraphStyleAttributeName;CTParagraphStyleNSParagraphStyle
9
MAPPEDconst CFStringRef kCTStrokeWidthAttributeName;NSString *NSStrokeWidthAttributeName;CFNumberNSNumber
10
MAPPEDconst CFStringRef kCTStrokeColorAttributeName;NSString *NSStrokeColorAttributeName;CGColorNSColor
11
MAPPEDconst CFStringRef kCTSuperscriptAttributeName;NSString *NSSuperscriptAttributeName;CFNumberNSNumber
12
MAPPEDconst CFStringRef kCTUnderlineColorAttributeName;NSString *NSUnderlineColorAttributeName;CGColorNSColor
13
MAPPEDconst CFStringRef kCTUnderlineStyleAttributeName;NSString *NSUnderlineStyleAttributeName;bitmaskbitmask
14
MAPPEDconst CFStringRef kCTVerticalFormsAttributeName;NSString *NSVerticalGlyphFormAttributeName;CGBooleanNSNumber (1 = true, 0 = false)
15
MAPPEDconst CFStringRef kCTGlyphInfoAttributeName;NSString *NSGlyphInfoAttributeName;CTGlyphInfoNSGlyphInfo
16
const CFStringRef kCTRunDelegateAttributeNameCTRunDelegate
17
NSString *NSBackgroundColorAttributeName;NSColor
18
NSString *NSAttachmentAttributeName;NSTextAttachment
19
MAPPEDNSString *NSBaselineOffsetAttributeName;kCTFontBaselineAdjustAttribute in CTFontDescriptorNSNumber
20
NSString *NSLinkAttributeName;doesn’t exist, must implement ourselves by drawing and checking locationNSURL or NSString
21
NSString *NSStrikethroughStyleAttributeName;doesn’t exist, must implement ourselves by drawingNSNumber
22
NSString *NSStrikethroughColorAttributeName;doesn’t exist, must implement ourselves by drawingNScolor
23
NSString *NSShadowAttributeName;doesn’t exist, must implement ourselves by drawingNSShadow
24
MAPPEDNSString *NSObliquenessAttributeName;kCTFontSlantTrait in CTFontDescriptorNSNumber (skew to apply)
25
MAPPEDNSString *NSExpansionAttributeName;kCTFontWidthTrait in CTFontDescriptorNSNumber (log of expansion factor to apply to glphys)
26
NSString *NSCursorAttributeName;really specific to the MacNSCursor
27
NSString *NSToolTipAttributeName;really specific to the MacNSString
28
NSString *NSMarkedClauseSegmentAttributeName;NSnumber (index marking clause segments)
29
NSString *NSWritingDirectionAttributeName;NSArray of numbers (for overriding bidi algorithm)
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47