Type Method

custom(_:size:)

Gets a custom font with the given name and size.

Declaration

static func custom(_ name: String, size: CGFloat) -> Font

See Also

Getting System Fonts

init(CTFont)

Gets a font from a platform font instance.

static func system(Font.TextStyle, design: Font.Design) -> Font

Gets a system font with the given style and design.

static func system(size: CGFloat, weight: Font.Weight, design: Font.Design) -> Font

Specifies a system font to use, along with the style, weight, and any design parameters you want applied to the text.

enum Font.TextStyle

A dynamic text style to use for fonts.

enum Font.Design

A design to use for fonts.