Structure

Font.Weight

A weight to use for fonts.

Declaration

@frozen struct Weight

Relationships

Conforms To

See Also

Styling a Font

func bold() -> Font

Adds bold styling to the font.

func italic() -> Font

Adds italics to the font.

func monospacedDigit() -> Font

Adjusts the font to use monospace digits.

func smallCaps() -> Font

Adjusts the font to use small capitals.

func weight(Font.Weight) -> Font

Sets the weight of the font.