Type Property

labelFontSize

Returns the size of the standard label font.

Declaration

class var labelFontSize: CGFloat { get }

Return Value

The label font size in points.

Discussion

The label font (Lucida Grande Regular 10 point) is used for the labels on toolbar buttons and to label tick marks on full-size sliders. See The macOS Environment in macOS Human Interface Guidelines for more information about system fonts.

See Also

Getting Metrics Information

class var smallSystemFontSize: CGFloat

Returns the size of the standard small system font.

class var systemFontSize: CGFloat

Returns the size of the standard system font.

class func systemFontSize(for: NSControl.ControlSize) -> CGFloat

Returns the font size used for the specified control size.

func advancement(forCGGlyph: CGGlyph) -> NSSize

Returns the nominal spacing for the given glyph—the distance the current point moves after showing the glyph—accounting for the receiver’s size.

var ascender: CGFloat

The top y-coordinate, offset from the baseline, of the font’s longest ascender.

var boundingRectForFont: NSRect

The font’s bounding rectangle, scaled to the font’s size.

func boundingRect(forCGGlyph: CGGlyph) -> NSRect

Returns the bounding rectangle for the specified glyph, scaled to the receiver’s size.

var capHeight: CGFloat

The cap height of the font.

var descender: CGFloat

The bottom y-coordinate, offset from the baseline, of the font’s longest descender.

func getAdvancements(NSSizeArray, forCGGlyphs: UnsafePointer<CGGlyph>, count: Int)

Returns an array of the advancements for the specified glyphs rendered by the receiver.

func getBoundingRects(NSRectArray, forCGGlyphs: UnsafePointer<CGGlyph>, count: Int)

Returns an array of the bounding rectangles for the specified glyphs rendered by the receiver.

var italicAngle: CGFloat

The number of degrees that the font is slanted counterclockwise from the vertical.

var leading: CGFloat

The leading value of the font.

var matrix: UnsafePointer<CGFloat>

The transformation matrix associated with the font.

var maximumAdvancement: NSSize

The maximum advance of any of the font’s glyphs.

var numberOfGlyphs: Int

The number of glyphs in the font.

var pointSize: CGFloat

The point size of the font.

var textTransform: AffineTransform

The current transformation matrix of the font.

var underlinePosition: CGFloat

The baseline offset to use when drawing underlines with the font.

var underlineThickness: CGFloat

The thickness to use when drawing underlines with the font.

var xHeight: CGFloat

The x-height of the font.

func getAdvancements(NSSizeArray, forGlyphs: UnsafePointer<NSGlyph>, count: Int)

Returns an array of the advancements for the specified glyphs rendered by the receiver.

Deprecated
func getAdvancements(NSSizeArray, forPackedGlyphs: UnsafeRawPointer, length: Int)

Returns an array of the advancements for the specified packed glyphs and rendered by the receiver.

Deprecated
func advancement(forGlyph: NSGlyph) -> NSSize

Returns the nominal spacing for the given glyph—the distance the current point moves after showing the glyph—accounting for the receiver’s size.

Deprecated
func boundingRect(forGlyph: NSGlyph) -> NSRect

Returns the bounding rectangle for the specified glyph, scaled to the receiver’s size.

Deprecated
func getBoundingRects(NSRectArray, forGlyphs: UnsafePointer<NSGlyph>, count: Int)

Returns an array of the bounding rectangles for the specified glyphs rendered by the receiver.

Deprecated