weight(_:) Sets the weight of the font. Declarationfunc weight(_ weight: Font.Weight) -> Font Mentioned inApplying custom fonts to text See AlsoStyling a fontbold()italic()monospaced()monospacedDigit()smallCaps()lowercaseSmallCaps()uppercaseSmallCaps()width(_:)Font.Widthleading(_:)Font.Leading