Paragraph. alignment = NSTextAlignmentCenter;
The value of NSStrokeWidthAttributeName is an NSNumber object (decimal ). This value changes the stroke width (percentage relative to the font size ). The default value is 0. Only the width of the stroke is changed. The negative number simultaneously changes the stroke and fill width of the text. For example, for common hollow words, this value is usually 3.0.
At the same time, two hollow attributes are set, and the NSStrokeWidthAttributeName attribute is set to an integer, so the text foreground is ineffective.
Effect:
Effect:
Effect:
Effect:
The value corresponding to this attribute is an NSNumber object (integer ). 0 indicates horizontal text. 1 indicates the vertical text. In iOS, horizontal text is always used. values other than 0 are not defined.
Effect:
Effect:
Effect:
Clear Saup