---
title: "boldSystemFont(ofSize:)"
framework: appkit
role: symbol
role_heading: Type Method
path: "appkit/nsfont/boldsystemfont(ofsize:)"
---

# boldSystemFont(ofSize:)

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

## Declaration

```swift
class func boldSystemFont(ofSize fontSize: CGFloat) -> NSFont
```

## Parameters

- `fontSize`: The desired font size specified in points. If you specify 0.0 or a negative number for this parameter, the method returns the system font at the default size.

## Return Value

Return Value A font object of the specified size.

## Discussion

Discussion If fontSize is 0 or negative, returns the boldface system font at the default size.

## See Also

### Related Documentation

- [init(name:size:)](appkit/nsfont/init(name:size:).md)

### Creating System Fonts

- [preferredFont(forTextStyle:options:)](appkit/nsfont/preferredfont(fortextstyle:options:).md)
- [systemFont(ofSize:)](appkit/nsfont/systemfont(ofsize:).md)
- [systemFont(ofSize:weight:)](appkit/nsfont/systemfont(ofsize:weight:).md)
- [monospacedSystemFont(ofSize:weight:)](appkit/nsfont/monospacedsystemfont(ofsize:weight:).md)
- [monospacedDigitSystemFont(ofSize:weight:)](appkit/nsfont/monospaceddigitsystemfont(ofsize:weight:).md)
- [systemFontSize](appkit/nsfont/systemfontsize.md)
- [smallSystemFontSize](appkit/nsfont/smallsystemfontsize.md)
- [NSFont.Weight](appkit/nsfont/weight.md)
- [NSFont.TextStyle](appkit/nsfont/textstyle.md)
- [NSFont.TextStyleOptionKey](appkit/nsfont/textstyleoptionkey.md)
