Contents

bold()

Adds bold or emphasized styling to the font.

Declaration

func bold() -> Font

Discussion

For fonts created from text styles, it could mean applying emphasized styling, which does not necessarily mean the bold weight specifically, so this modifier is not to be confused with weight(_:).

For example:

Font.body.bold()

will most likely get you the emphasized version of body text style, which is often in semibold weight. While

Font.body.weight(.bold)

will specifically get you the body text style font in the bold weight.

See Also

Styling a font