Enumeration

NSStringDrawingOptions

Constants for the rendering options for a string when it is drawn.

Topics

Constants

NSStringDrawingUsesLineFragmentOrigin

The specified origin is the line fragment origin, not the baseline origin.

NSStringDrawingUsesFontLeading

Uses the font leading for calculating line heights.

NSStringDrawingDisableScreenFontSubstitution

Disable screen font substitution (equivalent to [NSLayoutManager setUsesScreenFonts:NO]).

Deprecated
NSStringDrawingUsesDeviceMetrics

Uses image glyph bounds instead of typographic bounds.

NSStringDrawingOneShot

Suppresses caching layout information.

Deprecated
NSStringDrawingTruncatesLastVisibleLine

Truncates and adds the ellipsis character to the last visible line if the text doesn't fit into the bounds specified.

See Also

Strings

NSStringDrawingContext

An object that manages metrics used when drawing attributed strings.

UIBaselineAdjustment

Vertical adjustment options.

UILineBreakMode

Options for wrapping and truncating text.

Deprecated
UITextAlignment

Options for aligning text horizontally.

Deprecated
UITextAttributeFont

Key to the font in a text attributes dictionary.

Deprecated
UITextAttributeTextColor

Key to the text color in a text attributes dictionary.

Deprecated
UITextAttributeTextShadowColor

Key to the text shadow color in a text attributes dictionary.

Deprecated
UITextAttributeTextShadowOffset

Key to the offset used for the text shadow in a text attributes dictionary.

Deprecated