Structure

NSStringDrawingOptions

The following constants are provided as rendering options for a string when it is drawn.

Symbols

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: NSStringDrawingOptions

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: NSStringDrawingOptions

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