속성

자료형

기본값

버전3

설명 

 NSFontAttributeName

 UIFont

 Helvetica 12p

6.0

 서체 종류와 크기

 NSParagraphStyleAttributeName

 NSParagraphStyle 

 defaultParagraphStyle

6.0

 문장 스타일

 (줄간4문단간5, 정렬, 들여쓰기, 쓰기 방향 등에 대한 정보)

 NSLigatureAttributeName

 NSNumber (integer)

 1 (ligature)

6.0 

 합자6 여부

 NSKernAttributeName

 NSNumber (float)

 Depending on the font

6.0

 자간7

 NSForegroundColorAttributeName

 UIColor

 Black Color

6.0

 글씨 색

 NSBackgroundColorAttributeName

 UIColor

 nil (no background)

6.0

 글씨 배경색

 NSUnderlineStyleAttributeName

 NSNumber (integer)

 0 (no underline)

6.0

 밑줄 스타일

 (None, Single, Thick, Double, Word 등의 스타일과 Solid, Dot, Dash, Dash Dot, Dash Dot Dot 등의 채우기 스타일이 있다)

 NSUnderlineColorAttributeName

 UIColor

 nil (same foreground)

7.0

 밑줄 색

 NSStrokeWidthAttributeName

 NSNumber (float)

 0 (no stroke)

6.0

 글자 테두리 두께

 NSStrokeColorAttributeName

 UIColor

 nil (same foreground)

6.0

 글자 테두리 색

 NSStrikethroughStyleAttributeName

 NSNumber (integer)

 0 (no strikethrough)

6.0

 취소선 스타일

 NSStrikethroughColorAttributeName

 UIColor

 nil (same foreground)

7.0

 취소선 색

 NSShadowAttributeName

 NSShadow

 nil (no shadow)

6.0

 글자 그림자 스타일

 (그림자 위치, 색, 블러효과 등 스타일)

 NSTextEffectAttributeName

 NSString

 nil (no text effect)

7.0

 글자 이펙트

 (미리 알림 앱에서 사용되는 글자 효과. 현재는 Letterpress 스타일 밖에 없다)

 NSBaselineOffsetAttributeName

 NSNumber (float)

 0

7.0

 글자 기준선8

 NSObliquenessAttributeName

 NSNumber (float)

 0 (no skew)

7.0

 글자 기울기 방향(이텔릭체와 흡사)

 NSExpansionAttributeName

 NSNumber (float)

 0 (no expansion)

7.0

 글자 늘리기(균등 정렬과 흡사)

 NSLinkAttributeName

 NSURL or NSString

 nil

7.0

 링크

+ Recent posts