Settings for font styles in iOS, color, hollow, strikethrough, shadow, italic, flattened

Source: Internet
Author: User

Not much to say directly on the code!

The basic text settings of this knowledge, in fact, the text in iOS has a lot of settings, such as color, hollow, strikethrough, shadow, italic, flat, etc.



nsstrokewidthattributename Span style= "font-family:arial; letter-spacing:0px "> NSNumber ( decimal " size 0 3.0

The two properties of the hollow are also set, and Nsstrokewidthattributename property is set to an integer, the text foreground color has no effect


Effect:


Effect:

8. Nsstrikethroughstyleattributename add Strikethrough,strikethrough Delete line

Effect:

9. Nsunderlinestyleattributename Add Underline

Effect:

Nsshadowattributename Set the shadow, the individual settings are not so, it must be paired with other properties.

and the 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.

Effect:


nsobliquenessattributename Set the font tilt. Skew Oblique


Effect:


Nsexpansionattributename Setting text flattening


Effect:


This knowledge

Settings for font styles in iOS, color, hollow, strikethrough, shadow, italic, flattened

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.