Font
An environment-dependent font.
Declaration
@frozen struct FontOverview
The system resolves a font’s value at the time it uses the font in a given environment because Font is a late-binding token.
Topics
Getting standard fonts
extraLargeTitle2extraLargeTitlelargeTitletitletitle2title3headlinesubheadlinebodycalloutcaptioncaption2footnote
Getting system fonts
system(_:design:weight:)Font.DesignFont.TextStyleFont.Weightsystem(size:weight:design:)system(_:design:)system(size:weight:design:)
Creating custom fonts
Getting a font from another font
Styling a font
bold()italic()monospaced()monospacedDigit()smallCaps()lowercaseSmallCaps()uppercaseSmallCaps()weight(_:)width(_:)Font.Widthleading(_:)Font.Leading
Structures
Instance Methods
bold(_:)italic(_:)lowercaseSmallCaps(_:)monospaced(_:)pointSize(_:)resolve(in:)scaled(by:)smallCaps(_:)uppercaseSmallCaps(_:)