Structure

NSStringDrawingOptions

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

Topics

Constants

static var usesLineFragmentOrigin: NSStringDrawingOptions

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

static var usesFontLeading: NSStringDrawingOptions

Uses the font leading for calculating line heights.

static var disableScreenFontSubstitution: NSString.DrawingOptions

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

Deprecated
static var usesDeviceMetrics: NSStringDrawingOptions

Uses image glyph bounds instead of typographic bounds.

static var oneShot: NSString.DrawingOptions

Suppresses caching layout information.

Deprecated
static var truncatesLastVisibleLine: NSStringDrawingOptions

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

Relationships

Conforms To

See Also

Strings

class NSStringDrawingContext

An object that manages metrics used when drawing attributed strings.

enum UIBaselineAdjustment

Vertical adjustment options.