Text Property attributes
1.NSKernAttributeName: @10 adjustment sentence kerning sentence adjustment
2.NSFontAttributeName: [Uifont systemfontofsize:_fontsize] Set font
3.NSForegroundColorAttributeName: [Uicolor redcolor] Set text color
4.nsparagraphstyleattributename:paragraph Setting paragraph Styles
5.NSMutableParagraphStyle *paragraph = [[Nsmutableparagraphstyle alloc] init];
Paragraph.alignment = Nstextalignmentcenter;
6.NSBackgroundColorAttributeName: [Uicolor blackcolor] Set background color
7.NSStrokeColorAttributeName Set the text stroke color, you need to set the stroke width with nsstrokewidthattributename, so that the text can be hollow.
Nsstrokewidthattributename the value corresponding to this property is a NSNumber object (decimal). The value changes the stroke width (relative to the percentage of the font size). The default is 0, which does not change. The positive number only changes the stroke width. Negative numbers also change the stroke and fill width of the text. For example, for common hollow words, this value is typically 3.0.
The two properties of the hollow are also set, and the Nsstrokewidthattributename property is set to an integer, and the text foreground color is no effect.
8. Nsstrikethroughstyleattributename add strikethrough, strikethrough delete line
9. Nsunderlinestyleattributename Add Underline
Nsshadowattributename Set the shadow, the individual settings are not so, it must be paired with other properties.
And all three of them, Nsverticalglyphformattributename,nsobliquenessattributename,nsexpansionattributename.
11.NSVerticalGlyphFormAttributeName
The value corresponding to this property is a NSNumber object (integer). 0 indicates horizontal text. 1 indicates vertical text. In IOS, horizontal text is always used, and values other than 0 are undefined.
Nsobliquenessattributename set the font tilt.
Nsexpansionattributename Setting text flattening
iOS development UI Basic Text properties attributes