Structure

NSFont.Weight

System-defined font-weight values.

Declaration

struct Weight

Topics

Font Weights

static let ultraLight: NSFont.Weight

The font weight for system ultra light font.

static let thin: NSFont.Weight

The font weight for system thin font.

static let light: NSFont.Weight

The font weight for system light font.

static let regular: NSFont.Weight

The font weight for system regular font.

static let medium: NSFont.Weight

The font weight for system medium font.

static let semibold: NSFont.Weight

The font weight for system semibold font.

static let bold: NSFont.Weight

The font weight for system bold font.

static let heavy: NSFont.Weight

The font weight for system heavy font.

static let black: NSFont.Weight

The font weight for system black font.

Relationships

See Also

Creating System Fonts

class func systemFont(ofSize: CGFloat) -> NSFont

Returns the standard system font with the specified size.

class func systemFont(ofSize: CGFloat, weight: NSFont.Weight) -> NSFont

Returns the standard system font with the specified size and weight.

class func boldSystemFont(ofSize: CGFloat) -> NSFont

Returns the standard system font in boldface type with the specified size.

class func monospacedSystemFont(ofSize: CGFloat, weight: NSFont.Weight) -> NSFont

Returns a monospace version of the system font with the specified size and weight.

class func monospacedDigitSystemFont(ofSize: CGFloat, weight: NSFont.Weight) -> NSFont

Returns a version of the standard system font that contains monospaced digit glyphs.

class var systemFontSize: CGFloat

Returns the size of the standard system font.

class var smallSystemFontSize: CGFloat

Returns the size of the standard small system font.